Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Callback when movie is finished



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:52 PM, m wrote:

This is a follow up to <http://lists.apple.com/archives/QuickTime- API/2005/Jan/msg00178.html> where the poster was trying to get notifications that a movie had stopped playing. The technique he was using involves registering a TimeBase callback and is described at <http://developer.apple.com/qa/qa2001/qa1282.html>. He was unable to get it to work (the callback was never called). He was using Cocoa.

I spent the better part of a day trying to use the same technique, also in Cocoa, to detect when a sound was done playing (i.e. no on screen presence required, ergo no NSMovieView; just an NSMovie). I also was not able to get it to work at first.

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.

Is this a peculiarity of QuickTime in Cocoa, or does it happen in Carbon apps as well? Or perhaps I missed the documented dependence of TimeBase callbacks on having MovieControllers attached to Movies?

_murat



_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-api/m0987% 40earthlink.net


This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. QuickTime-API mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quicktime-api/email@hidden

This email sent to email@hidden
References: 
 >Re: Callback when movie is finished (From: m <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.