Version: 1.2

Posted: 2006-05-11

Build Requirements: XCode 2.2, or Java 2 SDK for Windows, and QuickTime 7

Runtime Requirements: Java 1.5 and QuickTime 7, or later, recommended

View Source Code:

Download Sample (“MovieCallbacks.zip”, 2.04M)
Download Sample (“MovieCallbacks.dmg”, 2.34M)



Description

Call-backs provide the facility for QuickTime to invoke your Java application code, at specific points, during program execution. Call-backs are provided in many parts of QuickTime including the MovieController, Movie and QuickTimeVR APIs.

The user to chooses a movie using the standard open file dialogue, that also shows a preview. Afterwards, a number of call-backs are installed. Depending on the type of movie opened, different callbacks are installed:

(1) Movie - DrawingComplete proc is used to notify the Java program whenever QuickTime draws to the screen.

(2) MovieController - ActionFilter procs are used - this subclass overides those actions that pass no parameters or a float parameter.

(3) If the Movie contains QuickTime VR content then a number of QTVR callbacks are installed and invoked when panning, tilting, hot-spot entering and leaving.

Document Revision History

Date Notes
2006-05-11Support for XCode 2. Modified project layout for platform independent distribution and compilation.
2003-01-14Shows how to display a QuickTime movie within a window and add Call-backs.

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.