Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Mac > Mac Code Warrior > Re: How to show...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 512 of 537
Post > Topic >>

Re: How to show a QuickTime movie on a dialog

by David Phillip Oster <oster@[EMAIL PROTECTED] > Feb 18, 2006 at 03:54 PM

In article <4TqJf.47164$T35.776032@[EMAIL PROTECTED]
>,
 "blah" <blah@[EMAIL PROTECTED]
> wrote:

> I am trying to develop a Mac application that will run on OS X and OS 9.
 I
> am using CodeWarrior 9 running on OS X.
> 
> Here's my question:
> How can I display a QuickTime movie on a dialog?
> 
> Some sample code would help.  I did find a class in PowerPlant that may
help
> called LMovieController but I am unsure how to use it.

1.) Write a C++ PowerPlant program that shows a dialog. Test it.
2.) In Constructor, add a LView to your dialog, give it a unique paneID. 
Test it. 

You will need to add UQuickTime.cp to your project if it isn't already 
there. You may need to add the QuickTime library to your project if it 
isn't already there.


Get a Movie. You'll probably need to write some code here. Look at 
UQuickTime::GetMovieFromFile() for examples.

Make a new LMovieController programmaticly with


LMovieController *moviePane = new LMovieController(paneinfo, myMovie);

where paneinfo is an appropriately filled out SPaneInfo struct. Get the 
superView by calling FindPaneByID() on the dialog's LWindow with the 
paneID form step 2.

You can't just add a LMovieController to your dialog in Constructor, 
because LMovieController doesn't have any public member functions for 
setting which movie it will play. You could subclass LMovieController to 
add such a function, but then you'd have to pretty much copy the code 
out of the constructor I used above. So, it seemed simplest just to 
construct an instance at runtime.

Note that according to Apple's published do***entation, 
DisposeMovieController() does not dispose the underlying Movie, so 
you'll need to save another reference to the Move so that you can do a 
DisposeMovie() when you are done with it. I believe that it is wise to 
DisposeMovieController first (which the desctructor of LMovieController 
does for you), then call DisposeMovie.
 




 2 Posts in Topic:
How to show a QuickTime movie on a dialog
"blah" <blah  2006-02-17 16:08:33 
Re: How to show a QuickTime movie on a dialog
David Phillip Oster <o  2006-02-18 15:54:12 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Nov 21 10:12:40 CST 2008.