https://xxxxxx/v4/live_engine_http_srv/get_relay_room_list?sdkappid=88888888&identifier=admin&usersig=xxx&random=99999999&contenttype=json
Parameter | Description |
xxxxxx | The reserved domain for the country/region where the SDKAppID is located: Others in China: console.tim.qq.comSingapore: adminapisgp.im.qcloud.comSilicon Valley: adminapiusa.im.qcloud.comJakarta: adminapiidn.im.qcloud.com |
v4/live_engine_http_srv/get_relay_room_list | Get Relay Room List API. |
sdkappid | |
identifier | |
usersig | |
random | Random 32-bit unsigned integer, range 0 - 4294967295. |
contenttype | Request format, fixed value json. |
{"RoomId": "main-room-001"}
Field | Type | Required | Description |
RoomId | String | Yes | Room ID to query. Can be a main room, sub-room, or normal room. |
{"ActionStatus": "OK","ErrorInfo": "","ErrorCode": 0,"RequestId": "Id-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","Response": {"RelayRole": 1,"RelayRoomList": [{"RoomId": "child-room-001","RelayTime": 1713868800},{"RoomId": "child-room-002","RelayTime": 1713868860}]}}
{"ActionStatus": "OK","ErrorInfo": "","ErrorCode": 0,"RequestId": "Id-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","Response": {"RelayRole": 2,"MainRoomId": "main-room-001"}}
{"ActionStatus": "OK","ErrorInfo": "","ErrorCode": 0,"RequestId": "Id-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","Response": {"RelayRole": 0}}
Field | Type | Description |
ActionStatus | String | Result of the request: OK: success; FAIL: failure. |
ErrorCode | Integer | Error code: 0: success; Non-zero: failure. |
ErrorInfo | String | Error message. |
RequestId | String | Unique request ID. Provide this RequestId for troubleshooting. |
Response.RelayRole | Integer | Relay role of the room: 0: Normal room (not involved in relay); 1: Main room (content source); 2: Sub-room (content receiver). |
Response.MainRoomId | String | Returned when RelayRole = 2 (sub-room). The main room ID this sub-room is bound to. |
Response.RelayRoomList | Array | Returned when RelayRole = 1 (main room). List of all sub-rooms bound to this main room. |
Response.RelayRoomList[i].RoomId | String | Sub-room ID. |
Response.RelayRoomList[i].RelayTime | Integer | Timestamp (Unix seconds) when this sub-room was added as a relay sub-room. |
Value | Name | Description |
0 | None | Normal room, not involved in any relay relationship. |
1 | Main | Main room, serves as content source; its mixed stream is relayed to sub-rooms. |
2 | Sub | Sub-room, receives the main room's mixed stream relay. Cannot connect, take seat, or PK. |
Error Code | Description |
100001 | Internal server error. Please retry. |
100002 | Invalid request parameters. Common cause: RoomId is empty. |
100004 | Room does not exist. |
100006 | Permission denied. Common cause: not a REST API call (client SDK not allowed). |
Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan