Package org.red5.io.flv
Interface IFLV
- All Superinterfaces:
IStreamableFile
- All Known Implementing Classes:
FLV
Represents FLV file
-
Method Summary
Modifier and TypeMethodDescriptionvoidFlushes HeaderGets the keyframe dataReturns a map of the metadatabooleanReturns a boolean stating whether a flv has keyframedatabooleanReturns a boolean stating whether the flv has metadatareaderFromNearestKeyFrame(int seekPoint) Returns a Reader closest to the nearest keyframevoidRefreshes the headers.voidsetCache(ICacheStore cache) Sets the caching implemenationvoidsetKeyFrameData(Map keyframedata) Sets the keyframe data of a flv filevoidsetMetaData(IMetaData metadata) Sets the metadatavoidsetMetaService(IMetaService service) Sets the MetaService through SpringwriterFromNearestKeyFrame(int seekPoint) Returns a Writer based on the nearest key frameMethods inherited from interface org.red5.io.IStreamableFile
getAppendWriter, getReader, getWriter
-
Method Details
-
hasMetaData
boolean hasMetaData()Returns a boolean stating whether the flv has metadata- Returns:
- boolean
trueif file has injected metadata,falseotherwise
-
setMetaData
Sets the metadata- Parameters:
metadata- Metadata object- Throws:
FileNotFoundException- File not foundIOException- Any other I/O exception
-
setMetaService
Sets the MetaService through Spring- Parameters:
service- Metadata service
-
getMetaData
Returns a map of the metadata- Returns:
- metadata File metadata
- Throws:
FileNotFoundException- File not found
-
hasKeyFrameData
boolean hasKeyFrameData()Returns a boolean stating whether a flv has keyframedata- Returns:
- boolean
trueif file has keyframe metadata,falseotherwise
-
setKeyFrameData
Sets the keyframe data of a flv file- Parameters:
keyframedata- Keyframe metadata
-
getKeyFrameData
Map getKeyFrameData()Gets the keyframe data- Returns:
- keyframedata Keyframe metadata
-
refreshHeaders
Refreshes the headers. Usually used after data is added to the flv file- Throws:
IOException- Any I/O exception
-
flushHeaders
Flushes Header- Throws:
IOException- Any I/O exception
-
readerFromNearestKeyFrame
Returns a Reader closest to the nearest keyframe- Parameters:
seekPoint- Point in file we are seeking around- Returns:
- reader Tag reader closest to that point
-
writerFromNearestKeyFrame
Returns a Writer based on the nearest key frame- Parameters:
seekPoint- Point in file we are seeking around- Returns:
- writer Tag writer closest to that point
-
setCache
Sets the caching implemenation- Parameters:
cache- cache
-