https://xxxxxx/v4/live_engine_http_srv/get_relay_room_list?sdkappid=88888888&identifier=admin&usersig=xxx&random=99999999&contenttype=json
参数 | 说明 |
xxxxxx | SDKAppID 所在国家/地区对应的专属域名: 中国: console.tim.qq.com新加坡: adminapisgp.im.qcloud.com硅谷: adminapiusa.im.qcloud.com雅加达: adminapiidn.im.qcloud.com |
v4/live_engine_http_srv/get_relay_room_list | 查询转发关系接口。 |
sdkappid | |
identifier | |
usersig | |
random | 请输入随机的32位无符号整数,取值范围0 - 4294967295。 |
contenttype | 请求格式固定值为 json。 |
{"RoomId": "main-room-001"}
字段 | 类型 | 属性 | 说明 |
RoomId | String | 必填 | 待查询的房间 ID。可以是主房间、子房间或普通房间。 |
{"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}}
字段 | 类型 | 说明 |
ActionStatus | String | 请求处理的结果: OK 表示处理成功; FAIL 表示失败。 |
ErrorCode | Integer | 错误码: 0:表示成功; 非0:表示失败。 |
ErrorInfo | String | 错误信息。 |
RequestId | String | 唯一请求 ID,每次请求都会返回,定位问题时需要提供该次请求的 RequestId。 |
Response.RelayRole | Integer | 房间的转发角色: 0:普通房间(未参与转发); 1:主房间(内容源); 2:子房间(内容接收方)。 |
Response.MainRoomId | String | 当 RelayRole = 2(子房间)时返回,表示该子房间所绑定的主房间 ID。 |
Response.RelayRoomList | Array | 当 RelayRole = 1(主房间)时返回,表示该主房间绑定的所有子房间列表。 |
Response.RelayRoomList[i].RoomId | String | 子房间 ID。 |
Response.RelayRoomList[i].RelayTime | Integer | 该子房间被添加为转发子房间的时间戳(Unix 秒)。 |
值 | 名称 | 说明 |
0 | None | 普通房间,未参与任何转发关系。 |
1 | Main | 主房间,作为内容源,其混流画面被转发到子房间。 |
2 | Sub | 子房间,接收主房间的混流转发。不能连线、不能上麦、不能 PK。 |
错误码 | 含义说明 |
100001 | 服务器内部错误,请重试。 |
100002 | 请求参数非法。常见原因:RoomId 为空。 |
100004 | 房间不存在。 |
100006 | 权限不足。常见原因:非 REST API 调用(端上 SDK 不允许调用此接口)。 |
文档反馈