QuickTime stops to play
QuickTime stops to play
- Subject: QuickTime stops to play
- From: Lorenzo <email@hidden>
- Date: Mon, 04 Aug 2003 14:32:48 +0200
Hi list,
I put a movie into an NSMovieView this way:
movieUrl = [NSURL fileURLWithPath:filePath];
gNSMovie = [[NSMovie alloc] initWithURL:movieUrl byReference:YES];
if(gNSMovie){
[theQTView setMovie:gNSMovie];
}
Then I start the playing pressing the little button in the standard default
QT control panel, but after some seconds I cannot here/see the movie
anymore. I realized that the movie is still running but anyway I cannot
heard and see it. I can see and heard the movie again if I resize the
Window.
I even tried "byReference = NO", but the problem is still there.
# Any solution to this trouble?
# did I forget to set something?
# And please, when should I relase the gNSMovie allocated?
Just after I set the movie to the NSMovieView?
[theQTView setMovie:gNSMovie];
[gNSMovie release];
Or is it enough to relase it just before loading the next movie?
if(gNSMovie != nil) [gNSMovie release];
gNSMovie = [[NSMovie alloc] initWithURL:movieUrl byReference:YES];
Thank you.
Best Regards
--
Lorenzo
email: email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.