Skip to main content

Stop Cloud Player (Legacy)

Note

This API is deprecated as of 2022.11.17. Please use the new cloud player APIs (Start Playback, Stop Playback) instead.

Stop the cloud player service when you no longer need to stream resources in the room.

Request Method

Note

This API is deprecated as of 2022.11.17.

POST: http://api.rong-api.com/v2/rtc/cloudplayer/rtmp/stop

Signature Rules: All requests to RC server APIs require signature validation. See API Request Signature for details.

Request Body

The HTTP request body contains a JSON object with the following structure:

ParameterTypeDescriptionRemarks
user_idStringUser ID for the call
user_nameStringUser name

Request Example

POST http://api.rong-api.com/v2/rtc/cloudplayer/rtmp/stop HTTP/1.1
Host: api.rong-api.com
App-Key: XXX
RC-Nonce: 1027489915
RC-Timestamp: 1609754958
RC-Signature: 357cef9b529edd1ed4f34bd8df52de00a909914b
Room-Id: 123
Content-Type: application/json

{
"user_id": "xxx",
"user_name": "xxx"
}

Response

The HTTP response body contains a JSON object with the following structure:

  • code: Business status code in the HTTP response body. 10000 indicates successful processing.

Response Example

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8

{
"code":10000
}