Class QuickTimeMultiplexer

java.lang.Object
org.monte.media.quicktime.QuickTimeMultiplexer
All Implemented Interfaces:
Closeable, AutoCloseable, Multiplexer

public class QuickTimeMultiplexer extends Object implements Multiplexer
QuickTimeMultiplexer.
Author:
Werner Randelshofer
  • Constructor Details

  • Method Details

    • addTrack

      public int addTrack(Format fmt) throws IOException
      Adds a track.
      Specified by:
      addTrack in interface Multiplexer
      Parameters:
      fmt - The format of the track.
      Returns:
      The track number.
      Throws:
      IOException
    • write

      public void write(int track, Buffer buf) throws IOException
      Description copied from interface: Multiplexer
      Writes a sample. Does nothing if the discard-flag or the prefetch-flag in the buffer is set to true.
      Specified by:
      write in interface Multiplexer
      Parameters:
      track - The track number.
      buf - The buffer containing the sample data.
      Throws:
      IOException - if the write fails
    • close

      public void close() throws IOException
      Description copied from interface: Multiplexer
      Closes the Multiplexer.
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in interface Multiplexer
      Throws:
      IOException - if close fails
    • setMovieTimeScale

      public void setMovieTimeScale(long timeScale)
      Sets the time scale for this movie, that is, the number of time units that pass per second in its time coordinate system.

      The default value is 600.

      Parameters:
      timeScale -