Class QuickTimeMeta.Track

java.lang.Object
org.monte.media.quicktime.QuickTimeMeta.Track
Enclosing class:
QuickTimeMeta

protected static class QuickTimeMeta.Track extends Object
Represents a track.
  • Field Details

    • mediaType

      protected FormatKeys.MediaType mediaType
      The media type of the track.
    • format

      protected Format 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

      protected Date creationTime
      Creation time of the track.
    • modificationTime

      protected Date modificationTime
      Modification time of the track.
    • trackId

      protected int trackId
      The id of the track. The value 0 cannot be used.
    • duration

      protected long duration
      The 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 layer
      The track layer. Tracks with lower layers are displayed in front of tracks with higher layers.
    • alternateGroup

      protected int alternateGroup
      An 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 volume
      The audio volume of the track. 1.0 means normal volume.
    • matrix

      protected double[] matrix
      The transformation matrix of the track.
    • width

      protected double width
      The track dimension.
    • height

      protected double height
      The track dimension.
    • editList

      protected ArrayList<QuickTimeMeta.Edit> editList
      The edit list of the track.
    • mediaList

      protected ArrayList<QuickTimeMeta.Media> 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

      public String toString()
      Overrides:
      toString in class Object