Interface Multiplexer
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Subinterfaces:
MovieWriter
- All Known Implementing Classes:
AVIWriter,FileMultiplexer,ImageSequenceWriter,QuickTimeMultiplexer,QuickTimeWriter
A
Multiplexer can write multiple media tracks into a
single output stream.- Author:
- Werner Randelshofer
-
Method Summary
-
Method Details
-
addTrack
Adds a track.- Parameters:
fmt- The format of the track.- Returns:
- The track number.
- Throws:
IOException
-
write
Writes a sample. Does nothing if the discard-flag or the prefetch-flag in the buffer is set to true.- Parameters:
track- The track number.buf- The buffer containing the sample data.- Throws:
IOException- if the write fails
-
close
Closes the Multiplexer.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException- if close fails
-