...
REST query | Body example | Response example | Response state | Desctiption | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
/hls/startup |
| 200 - OK 404 - Stream not found 500 - Internal error | Start HLS agent for the stream | |||||||||||||||
/hls/find_all |
|
| 200 – OK 404 – Not found | Find all streams having HLS agents | ||||||||||||||
/hls/terminate |
| 200 – OK 404 – Not found | Stop or restart HLS agent for the stream | |||||||||||||||
/hls/profiles |
|
| 200 – OK 400 – Bad request 404 – Not found | Get HLS profile statistics | ||||||||||||||
/hls/subscribers |
|
| 200 – OK 400 – Bad request 404 – Not found | Get HLS subscribers statistics | ||||||||||||||
/hls/enableRecordingconnections |
|
| 200 – OK 400 – Bad request 404 – Not found 409 - Conflict 500 - Internal server error | Enable HLS stream debug segments recordingGet a list of HLS clients connected to the server | ||||||||||||||
/hls/disableRecordingenableRecording |
| 200 – OK 400 – Bad request 404 – Not found Disable409 - Conflict 500 - Internal server error | Enable HLS stream debug segments recording |
Parameters
Parameter name | Description | Example | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
name | Stream published name | test | |||||||||
/hls/disableRecording |
| 200 – OK 400 – Bad request 404 – Not found | Disable HLS stream debug segments recording |
Parameters
Parameter name | Description | Example |
---|---|---|
name | Stream published name | test |
hlsId | Stream published name | test |
profileName | Quality profile name to get a statistics | v_test |
offset | Offset from HLS streams statistics list start | 0 |
size | Maximum HLS streams statistics list size | 10 |
ids | HLS streams list to enable/disable debug segment recording | [ "test", "test-HLS-ABR-STREAM" ] |
state | HLS stream state | ACTIVE |
logs | Messages about stream issues | [] |
...
Where 8445 is HTTPS HLS port of WCS server
Displaying a list of HLS clients connected to the server
Since build 5.2.1968 it is possible to display a list of HLS clients connected to the server. The list is returned in response to the /hls/connections
query:
Code Block | ||||
---|---|---|---|---|
| ||||
[
{
"ip": "192.168.0.83",
"port": 51708,
"userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36"
}
] |
Where:
- ip - client address
- port - client source port
- userAgent -
User-Agent
header sent by the client
For HTTPS clients all the tabs of the same browser window on the same PC will be displayed at one position because HTTP/2 uses the same TCP connection for all HTTPS connections.
A clients count in the list will be the same as the statistics page value
Code Block | ||||
---|---|---|---|---|
| ||||
curl -s 'http://wcs:8081/?action=stat¶ms=connections_hls' |
HLS stream segments recording to disk for debugging purposes
...