🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
+++ post:v001/Live/enter *varchar:token#签名 *int:lid#直播ID *int:status#操作状态1:进入、2:离开 <<< 请求成功 { "data": { "info": { "lid": 25, "uid": 1, "name": "test", "channel": "5acddb85", "play": "02:42:18", "click": 14, "status": 2, "viewing": 16, "nickname": "王叔叔", "avatar": "" }, "mike": [ { "uid": 2, "nickname": "新用户8002", "avatar": "", "status": 2 } ], "message": "进入直播", "play": [ { "url": "rtmp://5853.liveplay.myqcloud.com/live/5853_5acddb85_m_1?bizid=5853&txSecret=a6faa492a3cd6928c28a147c1e10c71f&txTime=5ace0298", "uid": 1 }, { "url": "rtmp://5853.liveplay.myqcloud.com/live/5853_5acddb85_s_2?bizid=5853&txSecret=4a9b6b898d875362f50266528d9db261&txTime=5ace0298", "uid": 2 } ] }, "code": 200, "time": 1505441278, "content": { "token": "AThQY1U+AWUIYwBnUWUCb1w0AjAAZQ", "lid": "1", "status": "1" } } <<< 登录超时 { "data": { "message": "登录超时、请重新登录" }, "code": 300, "time": 1666666666, "content": { "token": "AThQY1U+AWUIYwBnUWUCb1w0AjAAZQ", "lid": "1", "status": "1" } } <<< 验证失败 { "data": { "message": "token不能为空" }, "code": 400, "time": 1666666666, "content": { "token": "AThQY1U+AWUIYwBnUWUCb1w0AjAAZQ", "lid": "1", "status": "1" } } <<< 非法请求 { "data": { "message": "请求错误" }, "code": 500, "time": 1666666666, "content": { "token": "AThQY1U+AWUIYwBnUWUCb1w0AjAAZQ", "lid": "1", "status": "1" } } +++ #### 请求成功 data['info']返回数据说明 | 字段名 | 描述 | 备注 | | --- | --- | --- | | lid | 直播ID | | | uid | 主播ID | | | name | 直播名称 | | | channel | 房间编号 | | | play | 直播时间 | | | click | 当前观看 | | | status | 培训状态 | 2:直播 9:回放 | | viewing | 累计观看 | | | nickname | 主播昵称 | | | avatar | 主播头像 | | #### 请求成功 data['mike']返回数据说明 | 字段名 | 描述 | 备注 | | --- | --- | --- | | uid | 用户ID | | | nickname | 主播昵称 | | | avatar | 主播头像 | | | status | 麦序状态 | 1:麦序 2:连麦 | #### 请求成功 data['play']返回数据说明 | 字段名 | 描述 | 备注 | | --- | --- | --- | | url | 低延迟流 | | | uid | 用户ID | |