quicktime.std.movies.media
Class MovieMediaHandler

java.lang.Object
  |
  +--quicktime.QTObject
        |
        +--quicktime.std.comp.ComponentIdentifier
              |
              +--quicktime.std.comp.Component
                    |
                    +--quicktime.std.movies.media.MediaHandler
                          |
                          +--quicktime.std.movies.media.VisualMediaHandler
                                |
                                +--quicktime.std.movies.media.MovieMediaHandler
All Implemented Interfaces:
InterfaceLib, PrimitivesLib, QuickTimeLib, SharedLibrary, com.apple.jdirect.SharedLibrary

public class MovieMediaHandler
extends VisualMediaHandler
implements QuickTimeLib


Fields inherited from interface quicktime.jdirect.QuickTimeLib
JDirect_MacOSX, libraryInstance, name
 
Method Summary
 DataRef getChildMovieDataReference(int dataRefID, int dataRefIndex)
          This method gets the data reference of the currently instantiated embedded movie
 int getCurrentMoviePropertyDuration()
          This method retrieves the duration of the currently instantiated embedded movie
 Matrix getCurrentMoviePropertyMatrix()
          This method gets the matrix of the currently instantiated embedded movie
 QDRect getCurrentMoviePropertyNaturalBounds()
          This method gets the natural bounds of the currently instantiated embedded movie
 TimeRecord getCurrentMoviePropertyTime()
          This method gets the time record associated with the currently instantiated embedded movie
 int getCurrentMoviePropertyTimeScale()
          This method gets the time scale of the currently instantiated embedded movie
 int[] getCurrentMoviePropertyTrackList()
          This method returns an array of all the track IDs associated with the currently instantiated embedded movie
 int getCurrentTrackPropertyMediaType(int trackID)
          This method gets the media type of the currently instantiated embedded movie
 void loadChildMovieFromDataReference(int dataRefID)
          This method loads the movie associated with a specific data reference
 void setChildMovieDataReference(int dataRefID, int dataRefType, DataRef dataRef)
          This method sets the data reference of the currently instantiated embedded movie
 
Methods inherited from class quicktime.std.movies.media.VisualMediaHandler
getGraphicsMode, getPublicInfo, getTrackOpaque, hitTestForTargetRefCon, hitTestTargetRefCon, setGraphicsMode, setPublicInfo
 
Methods inherited from class quicktime.std.comp.Component
count
 
Methods inherited from class quicktime.std.comp.ComponentIdentifier
find, find, getInfo, toString
 
Methods inherited from class quicktime.QTObject
disposeQTObject, equals, ID
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getCurrentMoviePropertyDuration

public int getCurrentMoviePropertyDuration()
                                    throws StdQTException
This method retrieves the duration of the currently instantiated embedded movie
Returns:
the duration of the movie

getCurrentMoviePropertyTimeScale

public int getCurrentMoviePropertyTimeScale()
                                     throws StdQTException
This method gets the time scale of the currently instantiated embedded movie
Returns:
the time scale of the movie

getCurrentMoviePropertyTime

public TimeRecord getCurrentMoviePropertyTime()
                                       throws QTException
This method gets the time record associated with the currently instantiated embedded movie
Returns:
the time of the movie as a TimeRecord

getCurrentMoviePropertyNaturalBounds

public QDRect getCurrentMoviePropertyNaturalBounds()
                                            throws StdQTException
This method gets the natural bounds of the currently instantiated embedded movie
Returns:
the natural bounds of the movie

getCurrentMoviePropertyMatrix

public Matrix getCurrentMoviePropertyMatrix()
                                     throws StdQTException
This method gets the matrix of the currently instantiated embedded movie
Returns:
the matrix of the movie

getCurrentMoviePropertyTrackList

public int[] getCurrentMoviePropertyTrackList()
                                       throws StdQTException
This method returns an array of all the track IDs associated with the currently instantiated embedded movie
Returns:
an array of track IDs of the movie

getCurrentTrackPropertyMediaType

public int getCurrentTrackPropertyMediaType(int trackID)
                                     throws StdQTException
This method gets the media type of the currently instantiated embedded movie
Parameters:
trackID - the ID of the track to return the type of
Returns:
the media type of the movie

getChildMovieDataReference

public DataRef getChildMovieDataReference(int dataRefID,
                                          int dataRefIndex)
                                   throws QTException
This method gets the data reference of the currently instantiated embedded movie
Parameters:
dataRefID - the ID of the data reference to retrieve
dataRefIndex - the index of the data reference to retrieve
Returns:
the DataRef of the movie

setChildMovieDataReference

public void setChildMovieDataReference(int dataRefID,
                                       int dataRefType,
                                       DataRef dataRef)
                                throws StdQTException
This method sets the data reference of the currently instantiated embedded movie
Parameters:
dataRefID - the ID of the data ref to set
dataRefType - the type of the data ref to set
dataRef - the data ref to set

loadChildMovieFromDataReference

public void loadChildMovieFromDataReference(int dataRefID)
                                     throws StdQTException
This method loads the movie associated with a specific data reference
Parameters:
dataRefID - the dataReference ID to be used