Class StreamRecorderFileVersionDelegate

  • All Implemented Interfaces:
    IStreamRecorderFileVersionDelegate, com.wowza.wms.livestreamrecord.model.ILiveStreamRecordFileVersionDelegate

    public class StreamRecorderFileVersionDelegate
    extends com.wowza.wms.livestreamrecord.model.LiveStreamRecordFileVersionDelegate
    implements IStreamRecorderFileVersionDelegate
    Default FileVersionDelegate class

    This delegate allows the configuration of a custom FileVersionName using a template string. The tags in the template string are replaced with their associated values, to generate a filename.
    Valid template tags are;
    ${SourceStreamName} - The name of the stream
    ${BaseFileName} - The basefile name, which is the filename prior to any versioning changes
    ${SegmentNumber} - An incrementing value representing the current number of segments which have been created for this recording, starting at 0
    ${RecordingStartTime} - The time at which the recording was started formatted as yyyy-MM-dd-HH.mm.ss.SSS-zzz
    ${SegmentTime} - Time time at which the segment was created

    The default template string is
    ${BaseFileName}_${RecordingStartTime}_${SegmentNumber}

    • Field Summary

      • Fields inherited from class com.wowza.wms.livestreamrecord.model.LiveStreamRecordFileVersionDelegate

        BASE_NAME_TAG, DATETIME_LAYOUT_NORMAL, DATETIME_LAYOUT_NORMAL_ALT, SEGMENT_NUMBER_TAG, SEGMENT_TIME_TAG, START_TIME_TAG, STREAM_NAME_TAG
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      String getFilename​(IStreamRecorder recContext)
      Creates a new filename using the default template string,
      • Methods inherited from class com.wowza.wms.livestreamrecord.model.LiveStreamRecordFileVersionDelegate

        createFileName, getFilename, getFileTemplate, getSegmentationType, setFileTemplate
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StreamRecorderFileVersionDelegate

        public StreamRecorderFileVersionDelegate()
    • Method Detail

      • getFilename

        public String getFilename​(IStreamRecorder recContext)
        Creates a new filename using the default template string,
        Specified by:
        getFilename in interface IStreamRecorderFileVersionDelegate
        Parameters:
        recContext - The IStreamRecorder requesting the file name
        Returns:
        String The versioned file name