Results 1 to 7 of 7

Thread: nDVR + Pre-Roll

  1. #1
    Join Date
    Nov 2013
    Posts
    6

    Question nDVR + Pre-Roll

    Hi,

    i managed to get the "Pre-Roll until live" working. I would like to extend the module to get the following behaviour:


    Play Playlist items while there's no live stream. ( no rewind-feature! )
    Play Live-Stream with "rewind"-feature when there's a live-stream.

    Currently this doesn't work.
    I don't find a way to tell the "swapToLive" - function that it should switch from Playlist to DVR.

    In my Web-Player I can select "?DVR", but this returns an Error #2032 when i'm in "Playlist-Mode"

    I managed to switch DVR-Recording on as soon as I have a live-stream and switch it off as soon as the live-stream goes offline.

    I hope you understood my needs and can push me into the right direction...

  2. #2
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    You can enable nDVR for the entire stream. The portion of the stream that is has its source in the file is just part of the live stream. The entire stream can be DVR'd

    Richard

  3. #3
    Join Date
    Nov 2013
    Posts
    6

    Default

    Hi, thanks for your quick reply!

    Sorry, i've not clearly described my goal:

    I would like to disable the DVR Feature for "playlist-mode", because this is playing only some taped videoclips.
    It's only necessary in "livestream-mode".

    Thanks.

  4. #4
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    There is no such "playlist-mode" when using this feature. The scheduler is using Wowza Stream class streams which is essentially a live stream. The source for a Stream class stream can be another live stream or a static file, and they can be mixed sequentially in any order into the Stream class live stream that you playback. There is no distinction from the playback point of view or Wowza between file source and other live stream source, it's just one live stream.

    You can write code to start and stop nDVR recording, and you can detect the server-side switches in Stream class stream and know what the source is, but I do not think there is a way to put that together that would disable and enable client-side DVR features. In Flash, as a work-around, you might play an RTMP stream first, wait to get NetStream.onPlayStatus "Netstream.Play.Complete" notification, then start the HDS playback with DVR.

    Richard

  5. #5
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    On 2nd thought, you would lose the loop-until-live function if you followed that work-around, unless you added polling, much work. You could make a nice pre-roll for live stream, but you would lose the loop until live function.

    Rihcard

  6. #6
    Join Date
    Nov 2013
    Posts
    6

    Default

    OK, thanks again, this made it clearer for me.

    Would it be possible to change the WindowDuration while recording / playback? This would be a possible workaround for me.

    Edit: Just one more question to understand what happens "behind the scenes":

    Obviously, it makes a difference, if I add the "?DVR" query string to a URL.

    http://[my-url]:1935/live/stream/manifest.f4m
    http://[my-url]:1935/live/stream/manifest.f4m?DVR

    Are this two different streams generated?
    If so, is it possible via API to check if a "DVR-Stream" is available and ready for playback for a "base stream"?
    Last edited by bastibeckr; 11-12-2013 at 11:48 AM.

  7. #7
    Join Date
    Sep 2011
    Posts
    1,933

    Default

    Hi,
    It's not possible to edit the Application.xml to change the Window duration and have these changes take effect while the live stream is still running as it requires that the application be restarted.
    I suppose it could be possible (I have not tested) to edit the stream name using the stream alias Module to remove the ?DVR query string from the stream URL which may change the behavior of the client.
    In theory this would be triggered by the live even and thus the live even has the nDVR functionality and the pre-roll does not.

    I imagine implementing above would involve a reasonably large amount of work and coding, I also can't guarantee that it will be successful.

    Jason

Similar Threads

  1. Combine Pre-Roll with nDVR-AddOn
    By bastibeckr in forum Server-side Modules and Code Samples Discussion
    Replies: 2
    Last Post: 11-14-2013, 08:59 AM
  2. Pre-Roll Video Ad
    By TheSTN in forum Live Streaming and Encoder Discussion
    Replies: 3
    Last Post: 03-18-2013, 03:42 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
  •