Results 1 to 5 of 5

Thread: strobe with nDVR

  1. #1

    Default strobe with nDVR

    Hi All,

    I am currently using Strobe Media Player with Wowza nDVR module.
    JWPlayer and Flowplayer don't work with Wowza nDVR.
    They do have some plugins but they aren't tested with Wowza nDVR and they simply don't work.

    Right now I am having a slight problem with the Strobe although it is pretty smooth.
    I am not sure if it is a Strobe issue though (hence posting here).

    When using Strobe (and the other players) the IClientNotify callbacks such as onClientConnect/onClientDisconnect are called consistently if the stream is RTMP.

    But if the stream is nDVR, these callbacks aren't called. Is there a reason for this?
    Our application requires the IClientNotify functionality with nDVR as well.

    Thanks.

  2. #2

    Default

    Those callbacks work for rtmp only.

    Check out the HTTPSessionCreate callbacks. A couple articles that may help you:

    Shows a general callback for all 3 HTTP stream types:


    http://www.wowza.com/forums/content.php?247-How-to-control-access-to-an-HTTP-stream-%28Cupertino-Smooth-and-San-Jose%29


    Shows a more specific callback for SanJose HTTP streaming only.
    http://www.wowza.com/forums/content....HTTP%29-stream

  3. #3

    Default

    Thanks for the information.

    Is it not possible to do the same thing with IHTTPStreamerSessionNotify interface?
    I have a listener class that implements both IHTTPStreamerSessionNotify and IClientNotify.
    I add the listener to the application instance using "appInstance.addClientListener(clientListener)".
    For RTMP clients IClientNotify methods are called.
    But for nDVR connections IHTTPStreamerSessionNotify aren't called.

    Is the above method not going to work for nDVR?

    Thanks.

  4. #4

    Default

    Yes, it's possible and it works. I just tried it. Did you try it?

    My test code is below

    You need to register to receive IHTTPStreamerSessionNotify events. Sounds like you only registered to receive client events.

    package com.wowza.wms.plugin.test.dvr.api;
    
    import com.wowza.wms.application.IApplicationInstance;
    import com.wowza.wms.httpstreamer.model.*;
    import com.wowza.wms.module.ModuleBase;
    import com.wowza.wms.vhost.IVHost;
    
    public class ModuleTestDvrHTTPSessionCallbacks extends ModuleBase implements IHTTPStreamerSessionNotify {
    
        public void onHTTPStreamerSessionCreate(IHTTPStreamerSession httpStreamerSession) {
            getLogger().info("onHTTPStreamerSessionCreate: " + httpStreamerSession.getSessionId());
        }
    
        public void onHTTPStreamerSessionDestroy(IHTTPStreamerSession httpStreamerSession) {
            getLogger().info("onHTTPStreamerSessionDestroy: " + httpStreamerSession.getSessionId());
        }
    
        public void onAppStart(IApplicationInstance appInstance) {
            IVHost vhost = appInstance.getVHost();
            HTTPStreamerContext htppStreamerContext = vhost.getHTTPStreamerContext();
            HTTPStreamerSessions httpStreamerSessions = htppStreamerContext.getSessions();
            httpStreamerSessions.addSessionListener(this);
        }
    
        public void onAppStop(IApplicationInstance appInstance) {
            IVHost vhost = appInstance.getVHost();
            HTTPStreamerContext htppStreamerContext = vhost.getHTTPStreamerContext();
            HTTPStreamerSessions httpStreamerSessions = htppStreamerContext.getSessions();
            httpStreamerSessions.removeSessionListener(this);
    
        }
    }

  5. #5

    Default

    Hi, you were right, I hadn't registered for the HTTP session events.

    Now I corrected it and I am getting the events.
    However, for RTMP the disconnection was right away.
    For HTTP though, the session needs to timeout.
    The default timeout value seems to be 25000 miliseconds.
    I tried to change it by the below properties and also programmatically by setSessionTimeout() in the onHTTPStreamerSessionCreate callback method.
    It somehow decreased to about 10 seconds but didn't go below that. What would be the reason about this?
    Do you think it is related with the player's buffer time?

    <HTTPStreamer>
    <Properties>
    <Property>
    <Name>newSessionTimeout</Name>
    <Value>8000</Value>
    <Type>Integer</Type>
    </Property>
    <Property>
    <Name>validSessionTimeout</Name>
    <Value>3000</Value>
    <Type>Integer</Type>
    </Property>
    </Properties>
    </HTTPStreamer>


    Thanks.

Similar Threads

  1. rewind very slow with Strobe in nDVR
    By jvstockley in forum AddOn: Wowza nDVR
    Replies: 2
    Last Post: 05-24-2013, 05:00 AM
  2. nDVR playback issues when using Strobe Media Player
    By tavius in forum AddOn: Wowza nDVR
    Replies: 6
    Last Post: 12-28-2012, 07:49 AM
  3. Bad Strobe Playback performance nDVR Adaptive bitrate
    By videodock in forum AddOn: Wowza nDVR
    Replies: 1
    Last Post: 07-02-2012, 03:58 PM
  4. Adaptive Bitrate, nDVR, SMIL and OSMF Strobe
    By nonsense in forum Wowza nDVR
    Replies: 3
    Last Post: 06-28-2012, 02:38 PM
  5. Wowza 3 + nDVR + OSMF Strobe Player + Android
    By nonsense in forum Media Players and Devices Discussion
    Replies: 33
    Last Post: 03-08-2012, 11:03 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
  •