I am trying to record files to the FM server as we stream them as a back up to our local recordings via Wirecast. The process is working, but we have to change the name of the stream in Wirecast, and thus the stream name in our video embed code, EVERY TIME we stream, otherwise the file simply gets overwritten. I am trying to find a way to add something like a date/time code to the beginning of the file name that is recorded so we won't have to worry about that anymore. Here is the code as it was given to us currently: application.onPublish = function( client, stream ) { if( (client.agent).indexOf("Wirecast/FM") == -1 ) return; //Make dvr info object var info = new Object(); info.streamName = "mp4:"+stream.name; info.callTime = new Date(); info.startRec = info.callTime; info.stopRec = new Date( 2099, 11, 31, 17, 59, 59 ); info.maxLen = 0; info.begOffset = 0; info.endOffset = 0; info.append = false; info.offline = false; info.dynamicStreamSet = info.streamName; //Call set DVR info client.DVRSetStreamInfo(info); } I can't find any documentation on what "dynamicStreamSet" is. If I change "info.streamName" then nothing records, but if I change "info.dynamicStreamSet" the file name is still "stream.name" rather than what I have changed it to. Any ideas or help? Thanks!!
... View more