Package org.red5.io
Class FileKeyFrameMetaCache
java.lang.Object
org.red5.io.FileKeyFrameMetaCache
- All Implemented Interfaces:
IKeyFrameMetaCache
- Direct Known Subclasses:
CachingFileKeyFrameMetaCache
File-based keyframe metadata cache.
- Author:
- The Red5 Project, Joachim Bauch (jojo@struktur.de)
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionloadKeyFrameMeta
(File file) Load keyframe informations for the given file.void
removeKeyFrameMeta
(File file) Remove keyframe information for given file.void
saveKeyFrameMeta
(File file, IKeyFrameDataAnalyzer.KeyFrameMeta meta) Store keyframe informations for the given file.
-
Field Details
-
log
private static org.slf4j.Logger logLogger
-
-
Constructor Details
-
FileKeyFrameMetaCache
public FileKeyFrameMetaCache()
-
-
Method Details
-
loadKeyFrameMeta
Load keyframe informations for the given file.- Specified by:
loadKeyFrameMeta
in interfaceIKeyFrameMetaCache
- Parameters:
file
- File to load informations for.- Returns:
- The keyframe informations or
null
if none exist.
-
removeKeyFrameMeta
Description copied from interface:IKeyFrameMetaCache
Remove keyframe information for given file. Need to update keyframe cache when re-writing file.- Specified by:
removeKeyFrameMeta
in interfaceIKeyFrameMetaCache
- Parameters:
file
- File to remove information for.
-
saveKeyFrameMeta
Store keyframe informations for the given file.- Specified by:
saveKeyFrameMeta
in interfaceIKeyFrameMetaCache
- Parameters:
file
- File to save informations for.meta
- Keyframe informations for this file.
-