Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
MovieCallbacks
Last Revision: | Version 1.2, 2006-05-11 Support for XCode 2. Modified project layout for platform independent distribution and compilation. (Full Revision History) |
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 |
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.
Copyright © 2006 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2006-05-11