获取在线直播房间列表V2

请求地址

GET  /api/live/v2/room/onlines
字段 是否可选 类型 描述
Authorization string 认证信息,格式:bearer ${token}
Accept-Language string 选择语言,(zh-CN)(zh-TW)(en-US)
默认值: zh-CN
Content-Type string application/x-www-form-urlencoded

请求参数

字段 是否可选 类型 描述
id int 直播房间ID
pushStreamType String 推流类型
CLIENT:客户端推流;SERVER:服务端推流
orderType String 排序类型
DESC:人数从大到小;ASC:反之
默认值:DESC
curPage int 当前页码
默认值:1
pageSize int 页面大小
默认值:15

响应参数

字段 类型 描述
resCode int 响应码
resMessage String 提示消息(根据language参数,选择语言返回)
data json 响应数据

成功返回

http/1.1 200 OK
{
    "resCode":1,
    "resMessage":"success",
    "data":{
        "rows":[
            {
                "id":131,
                "liveName":"will直播房间",
                "liveUri":"https://live.hst.com/xxxxxxxxx",
                "confRoomName":"will直播房间"
                "depName":"will",
                "userCount":10,
                "pushStreamType":"CLIENT" 
            },
            {
                "id":132,
                "liveName":"will直播房间2",
                "liveUri":"https://live.hst.com/xxxxxxxxx",
                "confRoomName":"will直播房间2"
                "depName":"will",
                "userCount":20,
                "pushStreamType":"SERVER" 
            }
        ],
        "total":3,
        "roomCount":{
            "client":1,
            "server":2
        }
    }
}

失败返回

http/1.1 200 OK
{
    "resCode": -1,
    "resMessage": "xxx",
}

results matching ""

    No results matching ""