Skip to main content

Stop Playback

When you no longer need to play resources in a room, stop the cloud playback service from publishing resources.

Request Method

POST: https://data center domain/v2/rtc/cloudplayer/stop

Signature Rules: All requests to RC server APIs require signature verification. For details, see API Request Signature.

Request Body Parameters

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/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 code in the HTTP response body. 10000 indicates success.

Response Example

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

{
"code":10000
}