接口说明
调用协议
HTTPS + JSON
POST /v2/ivh/liveroom/liveroomservice/getliveroom
Header Content-Type: application/json;charset=utf-8
请求参数
参数名称 | 类型 | 必选 | 描述 |
ReqId | string | 是 | 请求Id,长度为32的uuid |
LiveRoomId | string | 是 | 直播间id |
返回参数
参数名称 | 类型 | 必选 | 描述 |
ReqId | string | 是 | 单次请求Id,和入参一致 |
LiveRoomId | string | 是 | 直播间id |
Status | int | 是 | 直播间状态,0-初始状态;1-视频流创建中;2-视频流创建完成;3-拆句完成;4-调度中;5-调度完成;6-关闭 |
VideoStreamPlayUrl | string | 否 | 视频流播放地址(视频流创建完成才会返回) |
请求示例
{"Header": {},"Payload": {"LiveRoomId": "lm16441358952693772460","ReqId": "89ba8c61e9854b62902db33b8daf48c1"}}
返回示例
{"Header": {"RequestID": "aeeac7e4cf1b3db317c90db91acb6267","SessionID": "gz92439a3317234630252833536","DialogID": "","Code": 0,"Message": ""},"Payload": {"LiveRoomId": "lm16441358952693772460","VideoStreamPlayUrl": "webrtc://xxx.com/live/lm16441358952693772460?min_delay_ms=100","Status": 2,"ReqId": "89ba8c61e9854b62902db33b8daf48c1"}}