Re: QuickTime stops to play
Re: QuickTime stops to play
- Subject: Re: QuickTime stops to play
- From: Mathew Peterson <email@hidden>
- Date: Mon, 4 Aug 2003 06:44:42 -0600
I found a solution to be calling setNeedsDisplay:YES on the view every
5s.
On Monday, August 4, 2003, at 06:32 AM, Lorenzo wrote:
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.
_______________________________________________
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.