Wowza Community

current active stream

How would i be able to get the current active streams from the rest api?

curl -X GET --header ‘Accept:application/json; charset=utf-8’ http://localhost:8087/v2/servers/defaultServer/publishers

gives all publishers not the once currently broadcasting

Hello

You can get a list of incoming active streams via the instances endpoint. Please try the following:

curl -X GET --header 'Accept:application/json; charset=utf-8' http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/live/instances

Example return would be:

{"instanceList":[{"incomingStreams":[{"sourceIp":"rtmp://[ip]:56663","isPTZEnabled":false,"applicationInstance":"_definst_","name":"myStream","...........etc........],"outgoingStreams":[],"recorders":[],"streamGroups":[],"name":"_definst_"},{"incomingStreams":[],"outgoingStreams":[],"recorders":[],"streamGroups":[],"name":"incomingStreams"}]}

Thanks,

Matt

There is no function available within the Rest API to grab a screenshot. You can use an HTTP Provider to do this (custom made) or if you are leveraging the transcoder you can use it to achieve the same.

Thanks,

Matt

thanks, with this i would be able to put a recorder on it right.

i did found how to add a recorder, can the api make screenshots to without the need of ffmpeg?

i know the ffmpeg way todo it

i used it but required password every time. how i can set pass and username to get direcly

Error:Failed to connect to port 8087: Timed out

Please how to call

i used same api but getting this error

Error:Failed to connect to port 8087: Timed out

curl -X GET --header ‘Accept:application/json; charset=utf-8’ http://localhost:8087/v2/servers/defaultServer/vhosts/defaultVHost/applications/live/instances/definst

That’s the call to get the list of active streams.

https://www.wowza.com/docs/stream-management-query-examples

if you keep getting that error, there may be a firewall or network issue. You can send us a support ticket if you’d like us to take a look and see why.

https://www.wowza.com/support/open-ticket