Skip to main content
Participant
Jun 25, 2009 2:28 PM UTC
Answered

Accessing per stream information in application

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 is closed to new replies. Start a new post to keep the conversation going.
    SE_0208Correct answer
    Participating Frequently
    Jun 29, 2009 10:54 AM UTC

    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.

    3 replies

    SE_0208Correct answer
    Participating Frequently
    Jun 29, 2009 10:54 AM UTC

    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.

    Translate
    M_atAuthor
    Participant
    Jun 29, 2009 3:00 PM UTC

    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

    Translate
    Participating Frequently
    Jun 30, 2009 4:38 AM UTC

    You are most welcome

    Translate