Re: playing a quicktime movie in a QTMovieView
Re: playing a quicktime movie in a QTMovieView
- Subject: Re: playing a quicktime movie in a QTMovieView
- From: Roland Torres <email@hidden>
- Date: Mon, 16 Oct 2006 16:27:47 -0700
Ivan,
Use QTMovie +movieWithFile:error: instead.
NSError *error = nil;
NSString *myMovie = @"/Volumes/BigD/Users/test/movie.mov";
QTMovie *qtMovie = [QTMovie movieWithFile:myMovie error:&error];
if (error) {
// check out the error
} else {
[qtMovie gotoBeginning];
[qtMovie play];
}
Roland
On Oct 16, 2006, at 4:05 PM, Ivan Kourtev wrote:
On Oct 16, 2006, at 6:45 PM, Roland Torres wrote:
Ivan,
You might try -movieWithQuickTimeMovie:disposeWhenDone:error:
It's what I use, and it seems to work.
Thanks for the tip. Easier said than done -- I noticed that method
but couldn't figure out how to create the Movie argument for the
call. Do you have any sample code that I can take a look at?
Thanks.
--
ivan
Roland
On Oct 16, 2006, at 3:36 PM, Ivan Kourtev wrote:
Hi,
I have been unsuccessfully trying to load a QT movie and play it
into a QTMovieView. No matter which initialization method I try
to use (for QTMovie) it returns a nil. What am I doing wrong?
Currently I have this -- but like I said, I've tried most
appropriate initializers and can't get it to work.
QTMovie *qtmov = [[QTMovie alloc] initWithFile:@"/Volumes/BigD/
Users/test/movie.mov"
error:nil];
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden