public interface IMP4 extends IStreamableFile
Modifier and Type | Method and Description |
---|---|
void |
flushHeaders()
Flushes Header
|
Map<?,?> |
getKeyFrameData()
Gets the keyframe data
|
IMetaData<?,?> |
getMetaData()
Returns a map of the metadata
|
boolean |
hasKeyFrameData()
Returns a boolean stating whether a mp4 has keyframedata
|
boolean |
hasMetaData()
Returns a boolean stating whether the mp4 has metadata
|
ITagReader |
readerFromNearestKeyFrame(int seekPoint)
Returns a Reader closest to the nearest keyframe
|
void |
refreshHeaders()
Refreshes the headers.
|
void |
setKeyFrameData(Map<?,?> keyframedata)
Sets the keyframe data of a mp4 file
|
void |
setMetaData(IMetaData<?,?> metadata)
Sets the metadata
|
void |
setMetaService(IMetaService service)
Sets the MetaService through Spring
|
ITagWriter |
writerFromNearestKeyFrame(int seekPoint)
Returns a Writer based on the nearest key frame
|
getAppendWriter, getReader, getWriter
boolean hasMetaData()
true
if file has injected metadata, false
otherwisevoid setMetaData(IMetaData<?,?> metadata) throws FileNotFoundException, IOException
metadata
- Metadata objectFileNotFoundException
- File not foundIOException
- Any other I/O exceptionvoid setMetaService(IMetaService service)
service
- Metadata serviceIMetaData<?,?> getMetaData() throws FileNotFoundException
FileNotFoundException
- File not foundboolean hasKeyFrameData()
true
if file has keyframe metadata, false
otherwisevoid setKeyFrameData(Map<?,?> keyframedata)
keyframedata
- Keyframe metadataMap<?,?> getKeyFrameData()
void refreshHeaders() throws IOException
IOException
- Any I/O exceptionvoid flushHeaders() throws IOException
IOException
- Any I/O exceptionITagReader readerFromNearestKeyFrame(int seekPoint)
seekPoint
- Point in file we are seeking aroundITagWriter writerFromNearestKeyFrame(int seekPoint)
seekPoint
- Point in file we are seeking aroundCopyright © 2006-2012 The Red5 Project