...
|
...
|
@@ -740,3 +740,90 @@ |
|
|
名称| 类型|说明|
|
|
|
:----------- | :-----------: | :-----------:
|
|
|
| data | str|返回格式 ip:port |
|
|
|
|
|
|
|
|
|
|
|
|
###直播二期接口规范
|
|
|
# **直播房间详情**
|
|
|
|
|
|
----------
|
|
|
|
|
|
|
|
|
### **调用说明**
|
|
|
###### url&方式
|
|
|
名称| 说明
|
|
|
:----------- | :-----------:
|
|
|
| url | http://api.live.yoho.cn/v1/living/detail|
|
|
|
| method | get |
|
|
|
|
|
|
###### 参数说明
|
|
|
参数名称| 类型| 长度| 必须| 说明
|
|
|
:-- | :-- | :-- | :-- | :--:
|
|
|
| room_id | int|不限|是|直播房间ID|
|
|
|
|
|
|
###### 调用示例
|
|
|
|
|
|
http://api.live.yoho.cn/v1/living/detail
|
|
|
|
|
|
GET room_id=2266102578
|
|
|
|
|
|
|
|
|
### **结果返回**
|
|
|
|
|
|
###### 正确返回
|
|
|
|
|
|
{
|
|
|
"code": 200,
|
|
|
"message": "",
|
|
|
"data": {
|
|
|
"master_pic": "http://usr.im/100x100?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
"master_name": "王力宏1",
|
|
|
"master_meta": "ddd1",
|
|
|
"title": "werw",
|
|
|
"pic": "http://img12.static.yhbimg.com/global/2016/08/12/15/021dd17f6f156d2931944a5d0a5c58815c.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
"watermark": "23432",
|
|
|
"living": 0,
|
|
|
"like_num": 0,
|
|
|
"audience_num": 0,
|
|
|
"live_start_time": "321",
|
|
|
"rtmp_downstream_address": "rtmp://2718.liveplay.myqcloud.com/live/2718_3baa8de762c411e6a2cba4dcbef5e35a",
|
|
|
"flv_downstream_address": "http://2718.liveplay.myqcloud.com/live/2718_3baa8de762c411e6a2cba4dcbef5e35a.flv",
|
|
|
"hls_downstream_address": "http://2718.liveplay.myqcloud.com/2718_3baa8de762c411e6a2cba4dcbef5e35a.m3u8",
|
|
|
"live_last_time": "321",
|
|
|
"background_pic": "http://img11.static.yhbimg.com/global/2016/08/17/18/01f17a9cd44149052482e4ee58e590cf1b.png",
|
|
|
"share_url": "http://m.yohobuy.com/activity/live/2266102578",
|
|
|
"share_title": "分享标题",
|
|
|
"share_content": "分享内容",
|
|
|
"products_skn_list": [
|
|
|
"51153047",
|
|
|
"51153048",
|
|
|
"51153048"
|
|
|
]
|
|
|
},
|
|
|
"timestamp": 1471339317,
|
|
|
"md5": "36ca1d1279edc257a8dd5ee1ae052bc6"
|
|
|
}
|
|
|
|
|
|
###### 返回说明
|
|
|
名称| 类型|说明|
|
|
|
:----------- | :-----------: | :-----------:
|
|
|
| master_pic | str|主播头像
|
|
|
| master_name | str|主播名称
|
|
|
| master_meta | str|主播标签
|
|
|
| title | str|标题
|
|
|
| pic | str|封面图
|
|
|
| watermark | str|水印文案
|
|
|
| living | int|直播状态,0:未开始,1:直播中,2:已结束
|
|
|
| like_num | int|点赞数
|
|
|
| audience_num | int|正在观看人数
|
|
|
| live_start_time | int|直播开始时间(时间戳)
|
|
|
| starting_time |int|直播预告时间(时间戳)
|
|
|
| rtmp_downstream_address | str|rtmp下行地址
|
|
|
| flv_downstream_address | str|flv下行地址
|
|
|
| hls_downstream_address | str|hls下行地址
|
|
|
| live_last_time | int|直播时长(秒)
|
|
|
| background_pic | str|房间背景图片url
|
|
|
| share_url | str|分享链接url
|
|
|
| share_title | str|分享标题
|
|
|
| share_content | str|分享内容
|
|
|
| products_skn_list | array | 直播对应的商品skn列表 |
|
|
\ No newline at end of file |
...
|
...
|
|