next up previous
Next: About this document ... Up: QuickTime for Java Previous: Transition Effects

The Java for Quicktime Example Programs

Many more example programs are supplied with the Java for Quicktime. Full code listings for some of the example programs are also available here.

You are positively encouraged (i.e this stuff is examinable) to investigate and implement these programs. Each example has a good Readme file that explains how it works.

The full list of example programs is as follows:

: This will do a simple test and catch any exceptions to ensure that both QuickTime and QTJava are installed properly
: Simple demonstration application of the QTMusic toolbox - good first step to see that everything is installed properly. If this doesn't work there is a problem with your Java installation, your QuickTime installation or the QTJava installation, depending on the problem.

: use of the GraphicsImporter to display a QT image

: use of the MovieController to play a QT Movie - the movie can be a local file or a URL specified by the user

: Present any QT content within a Java frame with a Java rendered duke animation on top

: present ANY QT readable content with just a few lines of code. A browser version using the Java plugin and an appletviewer html page are provided

: An applet that lets you enter a URL to play a movie and maintain a list in the popup menu

: An example of reading QT data from an input stream and creating a QTCanvas client from it

: using the SpriteToolbox and java defined DragControllers to drag sprites around which is created using a movie's track

: Uses the QTImageProducer to produce a java.awt.Image

: Display a QuickTime movie in a JComponent using the QTImageProducer

: This demo program shows how to use the ImageViewer object to present a sequence of images one at a time using mouse clicks from the user.

: using the group drawable object DirectGroup to present multiple QT content in a single QTCanvas - on screen. Shows the timing hierarchy that is built out of the members of the DirectGroup.

: using a DirectGroup to provide a clip region and buttons to either rotate or scale any QT presentable media.

: using the off screen Compositor to present multiple QT content in a single

: Using the compositor to composite the use of the Ripple Effect. The effect is applied to any objects it overlaps that are behind it in the compositor. The spaces ships and text are in front of it so the rippling is not applied to them. This resulting image is then added behind a movie in a DirectGroup

: using the QT Visual effects architecture

Bouncing Sprites
: shows using the SpriteToolbox to move sprites around and bounce them to different frames

: Shows you how to meter a given band of Frequencies with the SoundMediaHandler calls. These values can be used to provide input to a spectrum display.

: Using the SG classes to create a movie through recorded sound

: Using the Sound Manager classes to record and playback sound into memory

Dragging Sprites
: using the SpriteToolbox and java defined DragControllers to drag sprites around

Create Movies
: Create a movie in Java

: Uses the Apple Curve Codec API calls that provide the functionality of QTVectors Graphics. Draws shapes and curves to demonstrate the usage of the Curve API calls. The QTVector Demo does the same thing by manipulating the raw data.

: Add and remove a TimeCode track to a movie - also shows how to notify QTCanvas when the application changes the size of its client

Play Tune
: Uses the TunePlayer to play a tune, save the tune to a movie and rebuild a tune from the instruments in a movie

: Detaching a movie from its controller - putting the movie in one QTCanvas and the MovieController in another

Custom Media
: Using the GenericMedia as a base class for an unknown to QTJava Media type Requires the user to open a VR file

: "Capture" the results of drawing in java and make a QT Sprite out of it.

: Opens a file, draws it into an offscreen QDGraphics capturing the results of this drawing into a Pict. This pict is then written out as a file and can be opened and viewed in any application that reads Pict Files.

: Opens a image file, draws it into an offscreen QDGraphics , capturing the results of this drawing into a Pict file. It also provides you with a settings box where you can set the output image settings.

: Adding a tween track to an existing movie with a 3D track and using the tween track to add an animated camera action.

: Using JavaScript to control playback of a QT movie. Only works in IE on Windows.

: Shows firstly scrolling java text that is scrolled based on the time value of its TimeBase. Press the movie button and the text's TimeBase is slaved to the Movie's TimeBase. The text will then scroll based on the changing time values of the movie.

: Putting a character in an animation that fades in and out. A TicklishController is used to control the fade.

: Putting a movie into the Compositor and controlling the playback of the movie with the space bar (toggle play/stop) and the arrow key - (left rate == -1, right rate = 1, up time to end of movie, down time to start of movie)

: Dissecting a movie and creating a mixer representation out of the sound objects in that movie. It give you control over individual track sound and also builds a sub mixer for music instruments found in a music track.

: Using the capability of QuickTime calling back into Java to notify a Java application of specific events that occur when presenting a movie

: An example demonstrating how to export a movie , import a media , and reference a media in a movie.

: An example demonstrating how to use the Text rendering capabilities of QuickDraw.

: Simple demonstration to display live video.

: Create a movie out of video and audio capture

next up previous
Next: About this document ... Up: QuickTime for Java Previous: Transition Effects
Dave Marshall