Copy link to clipboard
Copied
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.
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 whi
...Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
You are most welcome