com.smaxe.uv.media.core
Interface IMediaFileWriter


public interface IMediaFileWriter

IMediaFileWriter - media file reader writer.

Version:
0.3.0
Author:
Andrei Sochirca
See Also:
JUV Media SDK

Method Summary
 void close()
          Closes media file and releases acquired resources.
 void flush()
          Flushes pending track frames.
 MediaFileContainer getContainer()
          Returns media file container.
 void writeTrackSample(MediaTrackInfo track, long timestamp, ByteArray data)
          Notifies about a new track data frame.
 

Method Detail

getContainer

MediaFileContainer getContainer()
Returns media file container.

Returns:
media file container

writeTrackSample

void writeTrackSample(MediaTrackInfo track,
                      long timestamp,
                      ByteArray data)
                      throws java.io.IOException
Notifies about a new track data frame.

Parameters:
track -
timestamp - sample timestamp
data - sample data
Throws:
java.io.IOException - if an I/O exception occurred

flush

void flush()
           throws java.io.IOException
Flushes pending track frames.

Throws:
java.io.IOException - if an I/O exception occurred

close

void close()
           throws java.io.IOException
Closes media file and releases acquired resources.

Throws:
java.io.IOException - if an I/O exception occurred