Re: how to be informed that a movie is done playing?
Re: how to be informed that a movie is done playing?
- Subject: Re: how to be informed that a movie is done playing?
- From: m <email@hidden>
- Date: Sun, 7 Aug 2005 01:51:44 -0700
Digging in a bit more... looks like this has more to do with event
processing than with movie controllers. NSMovieView installs some
event handling magic that allows QuickTime to make the callbacks happen.
_murat
On Aug 6, 2005, at 10:28 PM, m wrote:
Just in case anyone else runs into this, this is a followup to a
thread regarding how to detect that a QuickTime movie has stopped
without polling.
In <http://www.cocoabuilder.com/archive/message/2004/1/8/98514>,
one technique is outlined which itself is based on <http://
developer.apple.com/samplecode/SimpleCocoaMovie/
SimpleCocoaMovie.html> or <http://developer.apple.com/qa/qa2001/
qa1282.html>. The technique described involves registering a
TimeBase callback.
I spent the better part of a day trying to use this technique to
detect when a sound was done playing (i.e. no on screen presence
required, ergo no NSMovieView; just an NSMovie).
It turns out that TimeBase callbacks don't work (the callback is
never called) unless there is a MovieController is attached to the
movie (!). Putting an NSMovie in an NSMovieView attaches a
MovieController, and voila! The callback now works.
Why this should be is a mystery. You'd think TimeBase functionality
would be completely independent of MovieControllers (sigh) but
there it is.
Hope this save someone else some headaches and time...
_murat
_______________________________________________
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
_______________________________________________
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