Sessions API
Sessions is a list of active connections to HTTP MPEG-TS or HLS outputs.
Get session list
Section titled “Get session list”{ "cmd": "sessions"}In response will be array of active sessions:
{ "sessions": [ { "client_id": "...", "channel_id": "...", "channel_name": "...", "addr": "...", "uptime": N } ]}client_id— unique session identifierchannel_id— unique channel identifierchannel_name— channel nameaddr— client IP addressuptime— the time in seconds, for which the session has been running
Close session
Section titled “Close session”{ "cmd": "close-session", "id": "..."}id— session identifier