Re: QuickTime stops to play
Re: QuickTime stops to play
- Subject: Re: QuickTime stops to play
- From: "Douglas A. Welton" <email@hidden>
- Date: Mon, 04 Aug 2003 11:41:14 -0400
Lorenzo,
You might want to check the archives. Several people have reported having
issues with QuickTime playback. I have never had this problem, but then
again my applications have associated a timer with movie playback. When the
timer is called, I call the function MovieTasks() and life is good (an
example of this is the SimpleCocoaMovie sample code).
Check the archives at cocoa.mamasam.com. If I remember correctly, Ben
Haller posted a second-hand pointer to a reply that someone got from Apple
regarding this issue. I believe it referenced a "bug to be fixed"
later,
douglas
on 8/4/03 8:32 AM, Lorenzo at email@hidden 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
_______________________________________________
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.