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.
Readme.txt
============================================================================= |
QuickTime for Java SDK Updated: 30 November 1998 |
Read Me Notes to "Detached Controller" Demo and Sample Code |
============================================================================= |
This demo program shows how to select and then play a QuickTime movie with its controller detached. |
============================================================================= |
The minimum runtime requirements for this Sample Code are: |
- Common |
- Sun Compliant Java Runtime Environment 1.1 |
- QuickTime 3 |
- QTJava.zip |
- MacOS: |
- System 8 or later |
- Macintosh Runtime for Java (MRJ) 2.1 |
- Windows 95, 98, or NT:: |
- JRE/JDK from Sun Microsystems, Inc. recommended |
============================================================================= |
Media requirements for this Sample Code are: |
A QuickTime movie of the user's choice |
============================================================================= |
Notes & Comments |
The user is prompted to select a movie file. If the selection is made, a window is constructed and the movie and its controller are presented to the user. |
The movie and its controller are displayed separately in the same window, with the controller at the top and the actual movie at the bottom. They are separated by a button. This button is eventless and its sole purpose is to show that the movie and the controller are detached. |
You can control the movie with the detached controller at the top. |
Resizing the window will resize the width of movie and the controller -- not the height. |
The setAttached() method call on the controller detaches or attaches the controller to its movie. We have used a QTPlayer object to play the movie in its canvas and a MoviePlayer object to play the controller of the movie. The controller of the movie is created using the new MovieController(movie, mcScaleMovieToFit) |
============================================================================= |
General Comments |
- QTSession.open and close: |
A QTSession.open will perform a gestalt check to ensure that QuickTime is present and is initialized. This is a required call before any QuickTime Java classes can be used. |
When the user closes the window the program will quit, first calling QTSession.close to terminate QuickTime. It is necessary for programs to call QTSession.close if they have previously called QTSession.open in order to shut down QuickTime properly. |
============================================================================= |
QuickTime and QuickTime for Java are trademarks of Apple Computer, Inc. |
(c) 1998 Apple Computer Inc. All rights reserved. |
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-01-14