java.lang.Object
org.monte.media.quicktime.QuickTimeMeta.Track
- Enclosing class:
QuickTimeMeta
Represents a track.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intAn identifier which specifies a collection of tracks that contain alternate data for one other.protected DateCreation time of the track.protected longThe duration of the track given in the movie time scale (derived value).protected ArrayList<QuickTimeMeta.Edit>The edit list of the track.protected FormatThe format of the media in the track.protected int// Enumeration for track header flags set { TrackEnable = 0x1, // enabled track TrackInMovie = 0x2, // track in playback TrackInPreview = 0x4, // track in preview TrackInPoster = 0x8 // track in poster } TrackHeaderFlags;protected doubleThe track dimension.protected intThe track layer.protected double[]The transformation matrix of the track.protected ArrayList<QuickTimeMeta.Media>The media list of the track.protected FormatKeys.MediaTypeThe media type of the track.protected DateModification time of the track.protected intThe id of the track.protected doubleThe audio volume of the track.protected doubleThe track dimension. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetTrackDuration(long movieTimeScale) Gets the track duration in the movie time scale.booleanbooleanbooleanbooleanvoidsetEnabled(boolean newValue) voidsetInMovie(boolean newValue) voidsetInPoster(boolean newValue) voidsetInPreview(boolean newValue) toString()
-
Field Details
-
mediaType
The media type of the track. -
format
The format of the media in the track. -
headerFlags
protected int headerFlags// Enumeration for track header flags set { TrackEnable = 0x1, // enabled track TrackInMovie = 0x2, // track in playback TrackInPreview = 0x4, // track in preview TrackInPoster = 0x8 // track in poster } TrackHeaderFlags; -
creationTime
Creation time of the track. -
modificationTime
Modification time of the track. -
trackId
protected int trackIdThe id of the track. The value 0 cannot be used. -
duration
protected long durationThe duration of the track given in the movie time scale (derived value). The value is equal to the sum of all track edits. If there are no edits, then the value is the sum of all sample durations converted into the movie time scale. -
layer
protected int layerThe track layer. Tracks with lower layers are displayed in front of tracks with higher layers. -
alternateGroup
protected int alternateGroupAn identifier which specifies a collection of tracks that contain alternate data for one other. Only one track of an alternate group is displayed based on selection criteria such as quality, language or computer capabilities. -
volume
protected double volumeThe audio volume of the track. 1.0 means normal volume. -
matrix
protected double[] matrixThe transformation matrix of the track. -
width
protected double widthThe track dimension. -
height
protected double heightThe track dimension. -
editList
The edit list of the track. -
mediaList
The media list of the track.
-
-
Constructor Details
-
Track
protected Track()
-
-
Method Details
-
setEnabled
public void setEnabled(boolean newValue) -
isEnabled
public boolean isEnabled() -
setInMovie
public void setInMovie(boolean newValue) -
isInMovie
public boolean isInMovie() -
setInPreview
public void setInPreview(boolean newValue) -
isInPreview
public boolean isInPreview() -
setInPoster
public void setInPoster(boolean newValue) -
isInPoster
public boolean isInPoster() -
getTrackDuration
public long getTrackDuration(long movieTimeScale) Gets the track duration in the movie time scale.- Parameters:
movieTimeScale- The time scale of the movie.
-
toString
-