Results 1 to 2 of 2

Thread: IStreamRecorderFileVersionDelegate does not trigger

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. Default IStreamRecorderFileVersionDelegate does not trigger

    I've created a module based on the ModuleAutoRecordAdvancedExample. It has a "startRecording" method that can be called from Flash/AS3 clients, with a simple implementation
    public void startRecording(IClient client, RequestFunction function, AMFDataList params) {
        StreamRecorderParameters recordParams = new StreamRecorderParameters(_appInstance);
        recordParams.fileVersionDelegate = new FileVersionDelegate();
        String  streamName  = params.getString(PARAM1);
        // ...
        _vhost.getLiveStreamRecordManager().startRecording(_appInstance, streamName, params); 
    In the FileVersionDelegate, I implement the IStreamRecorderFileVersionDelegate, because I want to add a timestamp to the filename of every file that is recorded.
    public class FileVersionDelegate implements IStreamRecorderFileVersionDelegate {
        public String getFilename(IStreamRecorder recContext) {
            File file = new File(recContext.getBaseFilePath());
            String basePath = file.getParent();
            String fileName = file.getName();
            return basePath + "/" + fileName + "_myTimestamp";
    I set a breakpoint at the first line in getFilename, but when I start recording and a file with the original filename does not exist, this method is not triggered. However, when I split recording or when a file with the original name exists, it's triggered and works as expected.

    What's going wrong here?

    Edit: Wowza 4.1.0 (build 12602)
    Last edited by karelboek; 02-03-2015 at 05:43 PM. Reason: Added Wowza version and build

Similar Threads

  1. IRandomAccessReader doesn't trigger
    By skorolev in forum Server-side Modules and Code Samples Discussion
    Replies: 2
    Last Post: 06-14-2013, 02:33 AM
  2. onHTTPSessionCreate does not trigger
    By Roy0817 in forum General Forum
    Replies: 16
    Last Post: 05-03-2013, 06:29 AM
  3. Trigger an Event once a live stream starts
    By alphacino in forum Server-side Modules and Code Samples Discussion
    Replies: 1
    Last Post: 01-09-2012, 07:13 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts