Results 1 to 4 of 4

Thread: How dvr playback works

  1. #1
    Join Date
    Nov 2012
    Posts
    7

    Question How dvr playback works

    Hello. Sorry for my english its not my native language.
    I using api to check signatures for streams by example /streamname?h=<signature>
    Its work fine for live and vod streams distributed by rtmp and rtp. But my script is not working when someone want to play dvr stream. Stream will play however it should not. I distribute dvr streams by hls and hds. http://<server ip>/dvr/mp4:<file>/manifest.f4m?t=1369996034&h=A6Y7XRnzKyDijN66IIk9Sw==&dvr
    I'm checking signatures in play(...) method

    public void play(IClient client, RequestFunction function, AMFDataList params) {
    boolean disconnect = true;
    ....
    if ( this.doChecksign == 1 )

    {
    if ( hasAccessRights(ip, playName) ) //here i check signature
    {
    disconnect = false;

    newPlayName = getNewPlayName(playName);
    params.set(PARAM1, new AMFDataItem(newPlayName));
    getLogger().info("ModuleChecksign: play: ip=" + client.getIp() + " playName=" + playName);
    } else
    {
    getLogger().info("ModuleChecksign: play: ip=" + client.getIp() + " playName=" + playName + ": checksign failed");
    }
    }
    else
    disconnect = false;
    }

    if (disconnect)
    {
    IMediaStream stream = getStream(client, function);
    sendStreamOnStatusError(stream, code, description);
    client.setShutdownClient(true);
    }
    else
    this.invokePrevious(client, function, params);
    }
    Last edited by ve1kyne; 05-31-2013 at 02:17 PM.

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

    Default

    I am not sure, not able to test this minute, but onHTTPSessionCreate should run for nDVR sessions:

    http://www.wowza.com/forums/content....josestreaming)

    Richard

  3. #3
    Join Date
    Nov 2012
    Posts
    7

    Default

    Thanks Richard. It works now.

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

    Default

    Great. Thanks for the update

    Richard

Similar Threads

  1. DVR playback with HLS and VideoJS
    By Simon245 in forum Wowza nDVR
    Replies: 1
    Last Post: 10-17-2014, 09:21 AM
  2. Replies: 5
    Last Post: 06-13-2014, 03:27 PM
  3. AIR Mobile Live channel DVR URL not working on iPhone but works on all android phones
    By irfanadil in forum Wowza Streaming Engine functionality
    Replies: 0
    Last Post: 03-06-2014, 05:27 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
  •