...
Code Block | ||||
---|---|---|---|---|
| ||||
{ "localMediaSessionId": "32ec1a8e-7df4-4484-9a95-e7eddc45c508", "localStreamName": "test", "uri": "srt://test1.flashphoner.com:31014", "status": "CONNECTED", "hasAudio": truefalse, "hasVideo": truefalse, "record": false, "transport": "SRT", "cdn": false, "timeout": 90000, "maxTimestampDiff": 900001, "allowedList": [] } |
UDP:
Code Block | ||||
---|---|---|---|---|
| ||||
{ "localMediaSessionId": "32ec1a8e-7df4-4484-9a95-e7eddc45c508", "localStreamName": "test", "uri": "udp://test1.flashphoner.com:31014", "status": "CONNECTED", "hasAudio": truefalse, "hasVideo": truefalse, "record": false, "transport": "UDP", "cdn": false, "timeout": 90000, "maxTimestampDiff": 900001, "allowedList": [] } |
4. Publish MPEG-TS stream using URI from the response
...
REST method | REST query body example | REST response body example | Response states | Description | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
/mpegts/startup |
|
| 200 - OK 409 - Conflict 500 - Internal error | Start MPEG-TS publishing | ||||||||||||||
/mpegts/find |
|
| 200 – streams found 404 – streams not found 500 - Internal error | Find the MPEG-TS stream by criteria | ||||||||||||||
/mpegts/find_all |
| 200 – streams found 404 – streams not found 500 - Internal error | Find all MPEG-TS streams | |||||||||||||||
/mpegts/terminate |
| 200 - stream stopped 404 - stream not found 500 - Internal error | Stop MPEG-TS stream |
...
Name | Description | Example |
---|---|---|
localStreamName | Name to set to the stream on server | test |
transport | Transport to use | srt |
uri | Endpoint URI to publish the stream | udp://192.168.1.39:31014 |
localMediaSessionId | Stream media session Id | 32ec1a8e-7df4-4484-9a95-e7eddc45c508 |
status | Stream status | CONNECTED |
hasAudio | Stream has audio track | true |
hasVideo | Stream has video track | true |
record | Stream is recording | false |
timeout | Maximum media data receiving timeout, ms | 90000 |
maxTimestampDiff | Maximum stream timestamps difference, mss | 900001 |
allowedList | Client addresses list which are allowed to publish the stream |
|
...