Thread-topic: Yet another post about QuickTime and .NET
Title: Message
John,
thanks for the reply. That does look tantalizingly easy, but I'm really
trying to target QuickTime 6.5... But I'll keep it in mind
:)
-----Original Message-
---- From: John Cromie
[mailto:email@hidden] Sent: Thursday, August 25, 2005 12:41
PM To: email@hidden Cc: Eastman,
David Subject: Re: Yet another post about QuickTime and
.NET
QuickTime 7 includes a new QuickTime COM/ActiveX
control targeted at COM and .NET developers using Visual Basic .NET, C# and of
course C++.
To
add the QuickTime COM control to your VS.NET Toolbox:
* Right-click
anywhere in the Toolbox and choose Add/Remove Items… to bring up the Customize
Toolbox dialog.
* Choose the COM Components tab
* Check "Apple
QuickTime Control 2.0" and click OK.
Once you have added an
instance of the control to your Windows Forms form, you can load a movie by
setting the URL property of the QuickTime control.
In
VB.NET:
AxQTControl1.URL =
""
Once a movie is loaded, the Movie
property of the control provides access to the QTMovie COM object which wraps
the movie.
e.g.
AxQTControl1.Movie.Play()
Dim trackLength As Long = AxQTControl1.Movie.Tracks(1).Duration
You can use the
Object Browser to explore the object model provided in the QTOControlLib and
QTOLibrary namespaces: documentation is not yet available.
Hope
this helps,
John Cromie QuickTime Engineering
At 20:07
25/08/2005, David Eastman wrote:
I'm trying to integrate QuickTime
VR movies into a Visual C++ .NET Forms-based application. I am new
to C++, native Windows development in general, and the QuickTime
API. Its all rather intimidating! Okay, so I do have some
Java experience, and a lot of QTVR experience using Director, so it isn't
quite as bleak as all that :)
I've been doing my homework, searching
through the list archives and reading everything I could about
interfacing between QuickTime and .NET. I've looked at some unmanaged
sample code (SimplePlayerSDI). I understand that there are
basically three approaches: 1)ActiveX control, 2)PInvoke, and
3)IJW. I am targeting QuickTime 6.5, and purchasing a third party
ActiveX control is not an option, so #1 is out.
My question is really
the same as a question someone asked previously, but I didn't see any
response. I understand how to call QuickTime routines from .NET,
but what do I do with QuickTime objects? How can I obtain and use a
Movie or MovieController object in .NET? Basically, how do I
actually get these and add them so they will display on my Form?
I
don't mean to seem like I'm too lazy to do my own work, but is there
a chance someone could provide me with some sample code which displays
a movie in a .NET Form using either PInvoke or IJW? Just the very
basics, and I'll work out the rest myself.
John Cromie QuickTime Engineering
_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-api/email@hidden
This email sent to email@hidden