Skip to main content
Participant
June 25, 2009
Answered

Accessing per stream information in application

  • June 25, 2009
  • 1 reply
  • 744 views

I'm using a modified version of the /live application to deliver multiple audio streams to a client base. So users connect to:

rtmp://servername/live

And specify which stream the want - stationA, stationB etc.

I have a requirement to collect information on how many users are connected to which stream every X minutes.

I have built a web service that the data can be sent to and can send data from within the apllication to this but I am having difficulty finding where, in the application, details of which client is connected to which streams is available.

Can anyone assist?

Thanks, Matt.

    This topic has been closed for replies.
    Correct answer SE_0208

    You can use Admin API commands "getLiveStreams" and "getLiveStreamStats". You can see how thye are used in "...administrationAPI.pdf" which you will find in documentation folder in your installed directory. Basically issue "getLiveStreams" with appInst paramater as "live" (your modified live application) - this will give you list of streams being played. Now iterate through all streams and issue "getLiveStreamStats" on each of the streams - This will give you list of susbscribers and time at which they started subscribing.

    Let me know if you have more queries.

    1 reply

    SE_0208Correct answer
    Participating Frequently
    June 29, 2009

    You can use Admin API commands "getLiveStreams" and "getLiveStreamStats". You can see how thye are used in "...administrationAPI.pdf" which you will find in documentation folder in your installed directory. Basically issue "getLiveStreams" with appInst paramater as "live" (your modified live application) - this will give you list of streams being played. Now iterate through all streams and issue "getLiveStreamStats" on each of the streams - This will give you list of susbscribers and time at which they started subscribing.

    Let me know if you have more queries.

    M_atAuthor
    Participant
    June 29, 2009

    Thanks mate - that's exactly what I needed. Marked as correct.

    I can rattle through each stream and identify the number of clients perfectly now.

    There are beers with your name on if you're anywhere near London

    Participating Frequently
    June 30, 2009

    You are most welcome