Class QuickTimeMeta

All Implemented Interfaces:
Serializable, Movie

public class QuickTimeMeta extends AbstractMovie
QuickTimeMeta holds the meta-data contained in a QuickTime movie.
Author:
Werner Randelshofer
See Also:
  • Field Details

    • LANGUAGE_CODES

      public static final Locale[] LANGUAGE_CODES
    • fileFormat

      protected Format fileFormat
      The file format.
    • brand

      protected String brand
    • versionYear

      protected int versionYear
    • versionMonth

      protected int versionMonth
    • versionMinor

      protected int versionMinor
    • compatibleBrands

      protected ArrayList<String> compatibleBrands
    • creationTime

      protected Date creationTime
      Creation time of the movie.
    • modificationTime

      protected Date modificationTime
      Modification time of the movie.
    • timeScale

      protected long timeScale
      The time scale of the movie. A time value that indicates the time scale for this media—that is, the number of time units that pass per second in its time coordinate system.
    • duration

      protected long duration
      The duration of the movie in time scale units (derived value). The value of this field corresponds to the duration of the longest track in the movie.
    • preferredRate

      protected double preferredRate
      The preferred rate at which to play this movie. A value of 1.0 indicates normal rate.
    • preferredVolume

      protected double preferredVolume
      The preferred volume of this movie’s sound. A value of 1.0 indicates full volume.
    • matrix

      protected double[] matrix
      The transformation matrix [a,b,u;c,d,v;x,y,w] for mapping 2d points of this movie to the screen.
                 [a b u;
       [x y 1] *  c d v; = [x' y' 1]
                  x y w]
       
    • previewTime

      protected long previewTime
      The time value in the movie at which the preview begins.
    • previewDuration

      protected long previewDuration
      The duration of the movie preview in movie time scale units.
    • posterTime

      protected long posterTime
      The time value of the time of the movie poster.
    • selectionTime

      protected long selectionTime
      The time value for the start time of the current selection.
    • selectionDuration

      protected long selectionDuration
      The duration of the current selection in movie time scale units.
    • currentTime

      protected long currentTime
      The time value for current time position within the movie.
    • nextTrackId

      protected long nextTrackId
      The ID to use for the next track added to this movie (derived value). The value of this field corresponds to the number of tracks.
    • tracks

      protected ArrayList<QuickTimeMeta.Track> tracks
      The list of tracks in the movie.
  • Constructor Details

    • QuickTimeMeta

      public QuickTimeMeta()
  • Method Details

    • getCreationTime

      public Date getCreationTime()
    • setCreationTime

      public void setCreationTime(Date creationTime)
    • getModificationTime

      public Date getModificationTime()
    • setModificationTime

      public void setModificationTime(Date modificationTime)
    • getTimeScale

      public long getTimeScale()
    • setTimeScale

      public void setTimeScale(long movieTimeScale)
    • getPreferredRate

      public double getPreferredRate()
    • setPreferredRate

      public void setPreferredRate(double preferredRate)
    • getPreferredVolume

      public double getPreferredVolume()
    • setPreferredVolume

      public void setPreferredVolume(double preferredVolume)
    • getPreviewTime

      public long getPreviewTime()
    • setPreviewTime

      public void setPreviewTime(long previewTime)
    • getPreviewDuration

      public long getPreviewDuration()
    • setPreviewDuration

      public void setPreviewDuration(long previewDuration)
    • getPosterTime

      public long getPosterTime()
    • setPosterTime

      public void setPosterTime(long posterTime)
    • getSelectionTime

      public long getSelectionTime()
    • setSelectionTime

      public void setSelectionTime(long selectionTime)
    • getSelectionDuration

      public long getSelectionDuration()
    • setSelectionDuration

      public void setSelectionDuration(long selectionDuration)
    • getCurrentTime

      public long getCurrentTime()
    • setCurrentTime

      public void setCurrentTime(long currentTime)
    • getNextTrackId

      public long getNextTrackId()
    • setNextTrackId

      public void setNextTrackId(long nextTrackId)
    • getDuration

      public Rational getDuration()
      Description copied from interface: Movie
      Returns the total duration of the movie in seconds.
    • timeToSample

      public long timeToSample(int track, Rational seconds)
      Description copied from interface: Movie
      Returns the frame number for the specified time in seconds.
    • sampleToTime

      public Rational sampleToTime(int track, long sample)
    • getTrackCount

      public int getTrackCount()
    • getFormat

      public Format getFormat(int track)
    • getFileFormat

      public Format getFileFormat()
    • getReader

      public MovieReader getReader()
    • clear

      protected void clear()
      Clears this movie.
    • getTransformationMatrix

      public double[] getTransformationMatrix()
    • toString

      public String toString()
      Overrides:
      toString in class Object