Results 1 to 7 of 7

Thread: Clear DVR store when stream ends

  1. #1
    Join Date
    Feb 2015
    Posts
    7

    Default Clear DVR store when stream ends

    Hi there!

    Is it possible to clear the DVR store and reset the time back to 0 immediately when a stream ends, instead of waiting 5 minutes as it is by default? At the moment if I stream for say 30 minutes, stop streaming, and then restart the stream within 5 minutes, the playback time in the player continues from the 30 minute mark from the previous stream, making it 31, 32, and so on. But if I wait 5 minutes and restart the stream, the playback time is reset to 0, and goes to 1, 2, and so on, as usual.

    Can I reset the time to 0 as in the second behavior, but without having to wait 5 minutes?

    Thanks
    Trong

  2. #2

    Default

    Hi,

    nDVR doesn't allow for clearing the DVR store outside of nDVR's own mechanism. I can suggest this requirement as a backlog item for you to see if this functionality is not working as you expect.


    Paul

  3. #3
    Join Date
    Feb 2015
    Posts
    7

    Default

    Quote Originally Posted by Paul_S View Post
    Hi,

    nDVR doesn't allow for clearing the DVR store outside of nDVR's own mechanism. I can suggest this requirement as a backlog item for you to see if this functionality is not working as you expect.


    Paul
    Hi Paul

    Yes please, thank you!

    Cheers
    Trong

  4. #4

    Default

    Hi Trong,

    OK I'll send this to our Backlog queue. Please note that I can't give timescales for when or if this functionality will be made available.


    Paul

  5. #5

    Default

    Hi Trong,

    I've had a response from one of the engineers involved in nDVR design. He states that you can set this to work as you wanted to now by setting one of the Wowza nDVR Advanced Properties.

    In particular,

    Look at setting the streamTimeout property.

    This is the amount of time, in milliseconds (ms), that Wowza nDVR will wait for packets until it stops recording. The default value is 300,000 ms (5 minutes). This timeout is meant to account for when encoders disconnect and then restart. The value should be a non-zero value or else your recording will stop whenever there is no data. You could look at reducing that value in order to reduce the reset time:

    <Properties>
         <Property>
              <Name>streamTimeout</Name>
              <Value>300000</Value>
              <Type>Integer</Type>
         </Property>
    </Properties>

    Like all DVR advanced properties, they are added to the DVR/Properties section in Application.xml.



    Paul

  6. #6
    Join Date
    Feb 2015
    Posts
    7

    Default

    Hi Paul

    That works! I was gonna use the Java API like this:

    public void onUnPublish(IMediaStream stream, String streamName, boolean isRecord, boolean isAppend) {
        ILiveStreamDvrRecorder dvrRecorder = stream.getDvrRecorder(IDvrConstants.DVR_DEFAULT_RECORDER_ID);      
        if (dvrRecorder.isRecording()) {
            dvrRecorder.stopRecording();
        }
    }
    But setting it in the configs is much simpler. Thanks so much

    Trong

  7. #7

    Default

    Good to hear. The simplest approach is often the best .

    Regards,

    Paul

Similar Threads

  1. Detect if stream is a DVR store stream
    By Meinaart in forum Wowza nDVR
    Replies: 1
    Last Post: 02-11-2014, 04:58 AM
  2. DVR timecode and 'store not found' issues
    By VSheyanov in forum Live Streaming and Encoder Discussion
    Replies: 3
    Last Post: 08-30-2013, 12:59 PM
  3. How can I know when a playlist ends?
    By Benny Veo in forum General Forum
    Replies: 16
    Last Post: 05-08-2012, 06:25 AM
  4. Record Live Stream - Playing back before recording ends
    By grantk in forum AddOn: Other AddOns
    Replies: 4
    Last Post: 04-02-2012, 01:53 PM

Posting Permissions

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