https://xxxxxx/v4/live_engine_http_srv/add_relay_room?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/add_relay_room | Add Relay Sub-room API. |
sdkappid | |
identifier | |
usersig | |
random | Random 32-bit unsigned integer, range 0 - 4294967295. |
contenttype | Request format, fixed value json. |
{"RoomId": "main-room-001","RelayRoomIdList": ["child-room-001", "child-room-002", "child-room-003"]}
Field | Type | Required | Description |
RoomId | String | Yes | Main room ID. The main room is the content source; its mixed stream will be relayed to all sub-rooms. |
RelayRoomIdList | Array of String | Yes | List of relay sub-room IDs: Up to 5 sub-rooms per request; Each sub-room must already exist; A sub-room cannot be another main room; A sub-room cannot be bound to a different main room (binding to the same main room is treated as idempotent success). |
Operation | Description |
Connection | The sub-room cannot initiate or accept connection invitations. |
TakeSeat | Viewers in the sub-room cannot take a seat. |
Battle (PK) | The sub-room cannot participate in PK battles. |
Main Room Template Category | Sub-room Relay Template | Description |
Portrait Video | VideoPortrait10Seats | Portrait dynamic 1v9 floating layout |
Landscape Video | VideoLandscapeAudioMix10Seats | Landscape dynamic 1v9 layout |
Audio (Voice Chat/KTV) | Karaoke | KTV voice mix stream |
{"ActionStatus": "OK","ErrorInfo": "","ErrorCode": 0,"RequestId": "Id-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","Response": {"ResultList": [{"RoomId": "child-room-001","ErrorCode": 0,"ErrorInfo": ""},{"RoomId": "child-room-002","ErrorCode": 0,"ErrorInfo": ""},{"RoomId": "child-room-003","ErrorCode": 0,"ErrorInfo": ""}]}}
{"ActionStatus": "OK","ErrorInfo": "","ErrorCode": 0,"RequestId": "Id-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","Response": {"ResultList": [{"RoomId": "child-room-001","ErrorCode": 0,"ErrorInfo": ""},{"RoomId": "child-room-004","ErrorCode": 100002,"ErrorInfo": "sub-room not exist"}]}}
Field | Type | Description |
ActionStatus | String | Request processing result: OK: processed successfully; FAIL: failed. |
ErrorCode | Integer | Error code: 0: success; Non-zero: overall request failed. |
ErrorInfo | String | Error information. |
RequestId | String | Unique request ID, returned with every request. Provide this when troubleshooting issues. |
Response.ResultList | Array | Operation result list for each sub-room, in the same order as RelayRoomIdList in the request. |
Response.ResultList[i].RoomId | String | sub-room ID. |
Response.ResultList[i].ErrorCode | Integer | Operation result for this sub-room. 0 indicates success; non-zero indicates failure. |
Response.ResultList[i].ErrorInfo | String | Error information for this sub-room. |
Error Code | Description |
100001 | Internal server error. Please retry. |
100002 | Invalid request parameters. Check the request based on the error description. Common causes: sub-room does not exist, RelayRoomIdList is empty. |
100006 | Permission denied. Common causes: not a REST API call (client SDK not allowed), caller is neither the room owner nor an admin. |
100012 | Rate limit exceeded. Each main room allows at most 1 relay write operation per second. |
100027 | Operation in progress. Another relay write operation is being executed for the same main room. Please retry later. |
{"RoomInfo": {"RoomId": "main_room_001","RoomType": "Live","Owner_Account": "anchor_001","TakeSeatMode": "ApplyToTake","SeatTemplate": "VideoDynamicGrid9Seats","RoomName": "Main Stage"}}
{"RoomInfo": {"RoomId": "child_room_001","RoomType": "Live","Owner_Account": "admin_001","SeatTemplate": "VideoDynamicGrid9Seats","RoomName": "Branch Venue A"}}
SeatTemplate has no effect during relaying; it is overridden by the relay template mapped from the main room's template. A single main room can bind up to 50 sub-rooms.{"RoomId": "main_room_001","RelayRoomIdList": ["child_room_001", "child_room_002", "child_room_003"]}
Capability | Main Room | sub-room |
Watch Live | ✓ | ✓ (main room content) |
Take Seat | ✓ | × |
Connection | ✓ | × |
PK (Battle) | ✓ | × |
Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan