This document provides details about the RTMP API endpoints.
Starts an RTMP push session.
POST: /rtmp/push/start
{
"converterName": "string",
"rtcChannel": "string",
"streamUrl": "string",
"streamKey": "string",
"region": "string",
"regionHintIp": "string",
"useTranscoding": boolean,
"rtcStreamUid": "string",
"audioOptions": {
// PushAudioOptions fields
},
"videoOptions": {
// PushVideoOptions fields
},
"idleTimeOut": int,
"jitterBufferSizeMs": int
}
{
"converter": {
"id": "string",
"createTs": number,
"updateTs": number,
"state": "string"
},
"fields": "string",
"timestamp": "string"
}
Stops an ongoing RTMP push session.
POST: /rtmp/push/stop
{
"converterId": "string",
"region": "string"
}
{
"status": "string",
"timestamp": "string"
}
Updates an ongoing RTMP push session.
POST: /rtmp/push/update
{
"converterId": "string",
"region": "string",
"streamUrl": "string",
"streamKey": "string",
"rtcChannel": "string",
"videoOptions": {
// PushVideoOptions fields
},
"jitterBufferSizeMs": int,
"sequenceId": int
}
{
"converter": {
"id": "string",
"createTs": number,
"updateTs": number,
"state": "string"
},
"fields": "string",
"timestamp": "string"
}
Starts a Cloud Player session.
POST: /rtmp/pull/start
{
"channelName": "string",
"streamUrl": "string",
"region": "string",
"uid": "string",
"playerName": "string",
"streamOriginIp": "string",
"audioOptions": {
// PullAudioOptions fields
},
"videoOptions": {
// PullVideoOptions fields
},
"idleTimeOut": int,
"playTs": int,
"encryptMode": "string"
}
{
"player": {
"id": "string",
"createTs": number,
"uid": "string"
},
"fields": "string",
"timestamp": "string"
}
Stops an ongoing Cloud Player session.
POST: /rtmp/pull/stop
{
"playerId": "string",
"region": "string"
}
{
"status": "string",
"timestamp": "string"
}
Updates an ongoing Cloud Player session.
POST: /rtmp/pull/update
{
"playerId": "string",
"region": "string",
"streamUrl": "string",
"audioOptions": {
// PullAudioOptions fields
},
"isPause": boolean,
"seekPosition": int,
"sequenceId": int
}
{
"status": "string",
"timestamp": "string"
}
Replace localhost:8080
with your server's address if different.