Mailing Lists: Apple Mailing Lists

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

QT and Cocoa



Hi list,
I am studying a Cocoa sample about QuickTime
I saw how to define a callback when the movie reaches the end. Fine.
I modified the parameter callBackAtExtremes to callBackAtTimeJump (see below
the code sample) and I saw that the CallBack procedure has been called when
the user moved the current playing point. Good. Now I would like to call the
callback procedure when the user presses the button "Stop" and the button
"Play". Do you know how to do that? Thank you.

- (void)setupMoviePlayingCompleteCallback:(Movie)theMovie
callbackUPP:(QTCallBackUPP) callbackUPP
{
TimeBase tb = GetMovieTimeBase (theMovie);
OSErr err = noErr;

gQtCallBack = NewCallBack(tb, callBackAtExtremes);
if (gQtCallBack != NULL)
{
err = CallMeWhen (gQtCallBack,
callbackUPP,
NULL, /* refCon */
triggerAtStop, /* flags - call us when stopped */
NULL, /* param2 - don't care */
NULL); /* param3 - don't care */
}
}



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.



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.