Results 1 to 7 of 7

Thread: What is the preferred way to use play/onPlay methods?

  1. #1
    Join Date
    Sep 2014
    Posts
    23

    Default What is the preferred way to use play/onPlay methods?

    I am trying to create something like this:
    http://www.wowza.com/forums/content....ics-on-a-timer

    But for RTMP, RTSP and HTTP inside the same module.

    I am using onPlay to create a "watchdog" for RTMP and RTSP. Should I use play/onDisconnect to RTMP? Should I use onRTPSessionCreate/Destroy for RTSP? Should I use onHTTPSessionCreate/Destroy for HTTP (san jose, cuppertino, etc)?

  2. #2
    Join Date
    Sep 2014
    Posts
    23

    Default

    Ping.

  3. #3
    Join Date
    May 2013
    Posts
    680

    Default

    You could take a look at the following to extend that example accordingly:

    See Richard's response and note the following:

    > For RTSP, utilize the IRTSPActionNotify interface of which leverages the onRTPSessionCreate.
    > For HTTP, you can use the onHTTPSessionCreate event handler as you've suggested as well (should cover all http related protocols).
    > RTMP is the default mechanism involved here, so you can keep this as-is.

    Alternatively, you could create a general thread that executes every 'x' number of seconds and iterates through all the clients to get the corresponding information and reports it in a similar fashion. You can see how to obtain a count/list of connected clients by protocol via the HTTP Provider found here (see second example).

    Thanks,

    Matt

  4. #4
    Join Date
    Sep 2014
    Posts
    23

    Default

    The problem with the HTTP Provider is that it has the overhead of HTTP protocol.
    Also, it does not catch events like play/stop.

    Thanks for the answer though. That IRTSPActionNotify looks useful.
    Last edited by maugzoide; 09-26-2014 at 10:19 AM.

  5. #5
    Join Date
    Sep 2014
    Posts
    23

    Default

    What do you mean by:

    RTMP is the default mechanism involved here, so you can keep this as-is.
    ?

  6. #6
    Join Date
    Sep 2014
    Posts
    23

    Default

    Any feedback?

  7. #7
    Join Date
    May 2013
    Posts
    680

    Default

    Sorry for the confusion, I was suggesting that the module referred to here utilizes the IMediaStreamActionNotify3 interface of which will handle rtmp play events.

Similar Threads

  1. Preferred Transcoder settings?
    By confusedUser in forum AddOn: Transcoder
    Replies: 1
    Last Post: 08-23-2012, 05:31 AM
  2. Creator Bikini is actually a preferred set for women
    By Kevin Brayen in forum General Forum
    Replies: 0
    Last Post: 03-15-2012, 01:39 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
  •