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.
CustomMedia
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 |
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.
Copyright © 2006 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2006-05-11