Interface MatroskaTrackConsumer
-
- All Superinterfaces:
java.lang.AutoCloseable
- All Known Implementing Classes:
MatroskaAacTrackConsumer,MatroskaOpusTrackConsumer,MatroskaVorbisTrackConsumer
public interface MatroskaTrackConsumer extends java.lang.AutoCloseableConsumer for the file frames of a specific matroska file track
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Already flushed, no more input coming.voidconsume(java.nio.ByteBuffer data)Consume one frame from the trackvoidflush()Indicates that no more input will come, all remaining buffers should be flushedMatroskaFileTrackgetTrack()voidinitialise()Initialise the consumer, called before first consume()voidseekPerformed(long requestedTimecode, long providedTimecode)Indicates that the next frame is not a direct continuation of the previous one
-
-
-
Method Detail
-
getTrack
MatroskaFileTrack getTrack()
- Returns:
- The associated matroska file track
-
initialise
void initialise()
Initialise the consumer, called before first consume()
-
seekPerformed
void seekPerformed(long requestedTimecode, long providedTimecode)Indicates that the next frame is not a direct continuation of the previous one- Parameters:
requestedTimecode- Timecode in milliseconds to which the seek was requested toprovidedTimecode- Timecode in milliseconds to which the seek was actually performed to
-
flush
void flush() throws java.lang.InterruptedExceptionIndicates that no more input will come, all remaining buffers should be flushed- Throws:
java.lang.InterruptedException- When interrupted externally (or for seek/stop).
-
consume
void consume(java.nio.ByteBuffer data) throws java.lang.InterruptedExceptionConsume one frame from the track- Parameters:
data- The data of the frame- Throws:
java.lang.InterruptedException- When interrupted externally (or for seek/stop).
-
close
void close() throws java.lang.ExceptionAlready flushed, no more input coming. Free all resources.- Specified by:
closein interfacejava.lang.AutoCloseable- Throws:
java.lang.Exception
-
-