...
- HTTP: http://streaming.flashphoner.com:90918081/rest-api/stream/terminate
- HTTPS: https://streaming.flashphoner.com:88888444/rest-api/stream/terminate
...
- streaming.flashphoner.com - is the address of the WCS server
- 9091 8081 - is the standard REST / HTTP port of the WCS server
- 88888444 - is the standard HTTPS port
- rest-api - is the required part of the URL
- /stream/terminate - is the REST method used
REST-methods and response statuses
REST-method | Example of REST query | Example of REST response | Response statuses | |||||
---|---|---|---|---|---|---|---|---|
/stream/terminate |
|
| 200 - Stream termination request is received 404 - Stream not found |
Parameters
Parameter name | Description | Example |
---|
sessionId
/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
...