Class StreamRecorderSimpleFileVersionDelegate
- All Implemented Interfaces:
IStreamRecorderFileVersionDelegate
,com.wowza.wms.livestreamrecord.model.ILiveStreamRecordFileVersionDelegate
This delegate uses the simple file versioning method to generate a file version name. The simple method is to version the existing file and always use the "basename" for the current file
Simple File Versioning:
The simple file versioning scheme attempts to resolve file name conflicts by appending "_1" to the end of the existing file,
so that the current recording can use the requested file name.
If a file by that name already exists the appended number will be incremented and renaming will be tried again.
This will continue until a non-conflicting file name is found.
For example: if the file name is "myStream.flv", and that file already exists, "myStream_1.flv" will be tried. If that still conflicts with an existing file, "myStream_2.flv" will be tried. This process continues until a non conflicting name is found. The recorder will then record to "mystream.flv"
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFilename
(IStreamRecorder recContext) Versions the existing file by appending _#, and returns the original file name for use as the current file.Methods inherited from class com.wowza.wms.livestreamrecord.model.LiveStreamRecordSimpleFileVersionDelegate
createFileName, getFilename
-
Constructor Details
-
StreamRecorderSimpleFileVersionDelegate
public StreamRecorderSimpleFileVersionDelegate()
-
-
Method Details
-
getFilename
Versions the existing file by appending _#, and returns the original file name for use as the current file.- Specified by:
getFilename
in interfaceIStreamRecorderFileVersionDelegate
- Parameters:
recContext
- The IStreamRecorder requesting the file name- Returns:
- String The original file name
-