public interface MovieReader
FIXME - MovieReader should extend Demultiplexer
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
findTrack(int fromTrack,
Format format)
Finds a track with the specified format.
|
long |
getChunkCount(int track)
Returns the number of media data chunks in the specified track.
|
Rational |
getDuration()
Returns the total duration of the movie .
|
Rational |
getDuration(int track)
Returns the duration of the specified track.
|
Format |
getFileFormat()
Returns the file format.
|
Format |
getFormat(int track)
Returns the media format of the specified track.
|
Rational |
getReadTime(int track)
Returns the current time of the track.
|
int |
getTrackCount()
Returns the number of tracks.
|
int |
nextTrack()
Returns the index of the next track in playback sequence.
|
void |
read(int track,
Buffer buffer)
Reads the next sample chunk from the specified track.
|
Rational |
sampleToTime(int track,
long sample)
Returns the time for the specified sample number.
|
void |
setMovieReadTime(Rational newValue)
Sets the read time of all tracks to the closest sync sample before or
at the specified time.
|
long |
timeToSample(int track,
Rational seconds)
Returns the sample number for the specified time.
|
int getTrackCount()
throws IOException
IOExceptionint findTrack(int fromTrack,
Format format)
throws IOException
fromTrack - the start track number.format - A format specification.IOExceptionRational getDuration() throws IOException
IOExceptionRational getDuration(int track) throws IOException
IOExceptionlong timeToSample(int track,
Rational seconds)
throws IOException
IOExceptionRational sampleToTime(int track, long sample) throws IOException
IOExceptionFormat getFileFormat() throws IOException
IOExceptionFormat getFormat(int track) throws IOException
track - Track number.IOExceptionlong getChunkCount(int track)
throws IOException
IOExceptionvoid read(int track,
Buffer buffer)
throws IOException
track - Track number.buffer - The buffer into which to store the sample data.IOExceptionint nextTrack()
throws IOException
IOExceptionvoid close()
throws IOException
IOExceptionvoid setMovieReadTime(Rational newValue) throws IOException
newValue - Time in seconds.IOExceptionRational getReadTime(int track) throws IOException
IOExceptionCopyright © 2014. All Rights Reserved.