Next: About this document ...
Up: QuickTime for Java
Previous: Transition Effects
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:
- QTTestApplet
- :
This will do a simple test and catch any exceptions to ensure that both QuickTime and QTJava are installed properly
- Music
- :
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.
- ImageFile
- :
use of the GraphicsImporter to display a QT image
- PlayMovie
- :
use of the MovieController to play a QT Movie - the movie can be a local file or a URL specified by the user
- DukeMovie
- :
Present any QT content within a Java frame with a Java rendered duke animation on top
- QTSimpleApplet
- :
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
- QTStreamingApplet
- :
An applet that lets you enter a URL to play a movie and maintain a list in the popup menu
- JISApplet
- :
An example of reading QT data from an input stream and creating a QTCanvas client from it
- DraggingSpritesApplet
- :
using the SpriteToolbox and java defined DragControllers to drag sprites around which is created using a movie's track
- QTtoJavaImage
- :
Uses the QTImageProducer to produce a java.awt.Image
- ImageProducing
- :
Display a QuickTime movie in a JComponent using the QTImageProducer
- SlideShow
- :
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.
- GroupDrawing
- :
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.
- MediaPresenter
- :
using a DirectGroup to provide a clip region and buttons to either rotate or scale any QT presentable media.
- ImageCompositing
- :
using the off screen Compositor to present multiple QT content in a single
- CompositedEffects
- :
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
- QTEffects
- :
using the QT Visual effects architecture
- Bouncing Sprites
- :
shows using the SpriteToolbox to move sprites around and bounce them to different frames
- SoundMeter
- :
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.
- SoundRecord
- :
Using the SG classes to create a movie through recorded sound
- SoundMemRecord
- :
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
- CurvesDemo
- :
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.
- TimeCode
- :
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
- DetachedController
- :
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
- JavaSprites
- :
"Capture" the results of drawing in java and make a QT Sprite out of it.
- CreatePictFile
- :
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.
- GraphicsExport
- :
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.
- TweenCamera
- :
Adding a tween track to an existing movie with a 3D track and using the tween track to add an animated camera action.
- JScriptApplet
- :
Using JavaScript to control playback of a QT movie. Only works in IE on Windows.
- TimeSlaving
- :
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.
- Transitions
- :
Putting a character in an animation that fades in and out. A TicklishController is used to control the fade.
- KeyboardController
- :
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)
- MusicMixer
- :
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.
- MovieCallbacks
- :
Using the capability of QuickTime calling back into Java to notify a Java application of specific events that occur when presenting a movie
- ImportExport
- :
An example demonstrating how to export a movie , import a media , and reference a media in a movie.
- TextDemo
- :
An example demonstrating how to use the Text rendering capabilities of QuickDraw.
- SGCapture
- :
Simple demonstration to display live video.
- SGCapture2Disk
- :
Create a movie out of video and audio capture
Next: About this document ...
Up: QuickTime for Java
Previous: Transition Effects
Dave Marshall
10/4/2001