Class StreamRecorderSimpleFileVersionDelegate
- Object
-
- com.wowza.wms.livestreamrecord.model.LiveStreamRecordSimpleFileVersionDelegate
-
- com.wowza.wms.livestreamrecord.manager.StreamRecorderSimpleFileVersionDelegate
-
- All Implemented Interfaces:
IStreamRecorderFileVersionDelegate
,com.wowza.wms.livestreamrecord.model.ILiveStreamRecordFileVersionDelegate
public class StreamRecorderSimpleFileVersionDelegate extends com.wowza.wms.livestreamrecord.model.LiveStreamRecordSimpleFileVersionDelegate implements IStreamRecorderFileVersionDelegate
StreamRecorderSimpleFileVersionDelegate classThis 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 Constructor Description StreamRecorderSimpleFileVersionDelegate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getFilename(IStreamRecorder recContext)
Versions the existing file by appending _#, and returns the original file name for use as the current file.
-
-
-
Method Detail
-
getFilename
public String getFilename(IStreamRecorder recContext)
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
-
-