I finally have my Wowza server setup in Amazon EC2 and it's working well so far. I have been streaming to the server/live application using the stream name "test" to test and now I am looking to implement the next phase of my project: Getting Wowza server statistics.
Basically, what I want to achieve is the ability to query and return all of the streams that are online on the server.
For example, if I am streaming to rtmp://[my-ip-address]/live with the stream name "test" and my friend is also streaming to the same server using the stream name "test2", I want the server to be able to tell me something like:
I really wouldn't focus on the above format too much, but hopefully it's clear. I want to be able to retrieve the status of ONE individual LIVE stream, and also the status of EVERY LIVE stream on the server.
I did some research and found out that I can go to http://[my-ip-address]:8086/connectioncounts and it will tell me what streams are on, as seen below. I had my friend turn on a stream, and also tune into mine with me, which is why it says 2 viewers. This is great, as if you remember, I'm trying to easily display if a stream is ONLINE, DURATION, and VIEWERS.
There are two problems here though. I need to type in a username and password from the admin.password file to access this information, and it does not tell me the duration of the individual stream.
How can I get the duration (or all of this information more easily?) and bypass the username/password needed, since I want to create a PHP API for this information!