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: Ivan Kourtev <email@hidden>
- Date: Mon, 16 Oct 2006 21:30:27 -0400
Roland,
Still not working. I had literally the same code suggested here and
the crazy part is that error is not even set by
movieWithFile:error:. I tried initing the movie with a URL instead -
no luck reagrdless of whether the URL is the local file or an
http://... address. I also tried calling +[QTMovie canInitWithFile]
and +[QTMovie canInitWithURL] and they both return NO.
I finally felt like I was getting somewhere when I tried
movieWithAttributes:error: and ZeroLink complained that
_QTMovieFileNameAttribute was an unknown symbol. So I think the QT
framework is not linked. How is that possible if I personally put
the QuickTime.framework in the Link Binary with Libraries build phase?
If it helps, I noticed I had to #import <QTKit/QTMovie.h> and #import
<QTKit/QTMovieView.h> or my code wouldn't compile. Otherwise, I am
completely stumped.
--
ivan
On Oct 16, 2006, at 7:27 PM, Roland Torres wrote:
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