...
REST-method | Example of REST query | Example of REST response | Response statuses | |||||||
---|---|---|---|---|---|---|---|---|---|---|
/stream/terminate |
| 200 - Stream termination request is received 404 - Stream not found |
...
Parameter name | Description | Example | sessionId | Unique client session identifier | /192.168.1.2:50159/192.168.1.5:8080|
---|---|---|---|---|---|
mediaSessionId | Media session identifier | 41c3f621-a847-4639 | |||
name | Stream name | streamName | |||
published | If true, the stream is published; if false, the stream is played | true | |||
status | Current status of the stream | PUBLISHING |
Stream filtering by parameters
A /stream/terminate query parameters considered as filters, all the steams that conforms to those fliters will be stopped. For example, we can stop all subscribers for all the streams published
Code Block | ||||
---|---|---|---|---|
| ||||
{"published": false} |
or all subsribers for certain stream
Code Block | ||||
---|---|---|---|---|
| ||||
{"name": "streamName","published": false} |
Streams published can be stopped by status
Code Block | ||||
---|---|---|---|---|
| ||||
{"status": "PUBLISHING"} |
Also all streams in certain mediasessions can be stopped
Code Block | ||||
---|---|---|---|---|
| ||||
{"mediaSessionIds":["41c3f621-a847-4639", "554916e0-931c-2479"]} |
The query without parameters will stop all the streams on server
Code Block | ||||
---|---|---|---|---|
| ||||
{} |
Sending the REST query to the WCS server
...