2 Replies Latest reply: Apr 19, 2012 12:05 PM by sinious RSS

    How can I change the recorded file name using DVRcast?

    rmshro0 Community Member

      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!!

        • 1. Re: How can I change the recorded file name using DVRcast?
          rmshro0 Community Member

          Anyone have a suggestion?

          • 2. Re: How can I change the recorded file name using DVRcast?
            sinious CommunityMVP

            I'm unfamiliar overall with real time streaming servers but the server that is accessing them via a webpage is probably a standard "web server". That web server (and your browser) can be told to expire any content at any interval you want (1 second to 1 year). Flash is typically cached overall so you might be getting these issues.

             

            For example, in a .htaccess file on an apache (most common) server, you could specify this to make sure your flash files (SWFs) are not cached:

             

            <IfModule mod_expires.c>
            ExpiresActive On
            ExpiresByType application/x-shockwave-flash "access plus 0 seconds"
            </IfModule>

             

            Then any SWF on that site (or folder in that site) would never be cached.