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 (“CustomMedia.zip”, 68.6K)
Download Sample (“CustomMedia.dmg”, 124.8K)



Description

The user is prompted to select a QTVR Panoramic movie file. The media object and SampleDescription of all of the tracks that are found in the opened movie are printed. Factory methods are used to create Media subclasses based on the media type. If a match is not found, for QuickTime's default media types, a search is performed to see if the application has registered knowledge of custom or application specific media types. If a match is still not found the factory will return a GenericMedia object.

Standard Media calls can still be performed on a GenericMedia class - it is only if the application requires specific functionality and support for specific media or media handlers that custom media classes have to be written. This mechanism can be used to integrate those custom classes within the existing framework.

Document Revision History

Date Notes
2006-05-11Support for XCode 2. Modified project layout for platform independent distribution and compilation.
2003-01-14Demonstrates how to subclass quicktime.std.movies.media.Media to support custom media types.

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.