All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----quicktime.QTObject | +----quicktime.std.movies.media.Media | +----quicktime.std.movies.media.GenericMedia
The fromType call in the Media class will return an appropriate object of a type that corresponds with the mediaType if the application has made this association known to the GenericMedia class. An application does this by calling the addMediaType method with the mediaType and full class name of the associated class. If a media type is encountered within a QT movie that is unknown at runtime then it will return an instance of GenericMedia. This has no defined public calls (except the getMediaType call) but enables general calls that can be done on any media type.
You can only subclass GenericMedia by defining your class to be in the same package as the GenericMedia class.
public final int getMediaType()
All Packages Class Hierarchy This Package Previous Next Index