QT and Cocoa
QT and Cocoa
- Subject: QT and Cocoa
- From: Lorenzo <email@hidden>
- Date: Thu, 31 Jul 2003 17:13:32 +0200
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.