Commit ea02716cf40cca90eaebf6b049b962265879dd95

Authored by 刘基城
1 parent 37c5df5b

码流档次逻辑变更

02.直播云/1.1 获取直播活动信息接口APP.md
... ... @@ -38,14 +38,7 @@ HTTP GET
38 38 | coverImgUrl | string | false | 活动封面 |
39 39 | activityCategory | string | false | 活动分类ID,001 发布会/002 婚礼/003 年会 /004 体育/005 游戏/006 旅游&户外/007 财经/008 演唱会/009 烹饪/010 宠物&动物/011 访谈/012 教育/013 竞技/014 剧场/015 晚会/016 电视节目/017 秀场 |
40 40 | extensions | string | false | 扩展字段,参数格式为Map对象的Json字符串 (主播昵称、头像等等) |
41   -| mp4_url_rate1 | string | false |流畅版的rtmp播放地址 |
42   -| mp4_url_rate2 | string | true | 标清版的rtmp播放地址,必须有|
43   -| mp4_url_rate3 | string | false | 高清版的rtmp播放地址 |
44   -| mp4_url_rate4 | string | false | 超清版的rtmp播放地址 |
45   -| hls_url_rate1 | string | false |流畅版的m3u8播放地址 |
46   -| hls_url_rate2 | string | true | 标清版的m3u8播放地址,必须有|
47   -| hls_url_rate3 | string | false | 高清版的m3u8播放地址 |
48   -| hls_url_rate4 | string | false | 超清版的m3u8播放地址 |
  41 +| rates | string | ture |清晰度标识,多个用逗号隔开: 流畅版=1,清晰版=2,高清版=3,超高清=4 |
49 42 | extViews | 对象数组 | false | 扩展机位的播放信息(不含主画面PGM的播放信息) |
50 43  
51 44 返回JSON格式的节目元数据信息,json示例如下:
... ... @@ -66,36 +59,15 @@ HTTP GET
66 59 "createTime":"",
67 60 "extensions":"",
68 61 "activityCategory":"",
69   - "mp4_url_rate1":"",
70   - "mp4_url_rate2":"http://api.cnlive.com/open/api2/live_ips/liveplayByAPP?channelID=xinyingshi&appId=iqj730vn11&isHLS=0",
71   - "mp4_url_rate3":"",
72   - "mp4_url_rate4":"",
73   - "hls_url_rate1":"",
74   - "hls_url_rate2":"http://api.cnlive.com/open/api2/live_ips/liveplayByAPP?channelID=xinyingshi&appId=iqj730vn11&isHLS=1",
75   - "hls_url_rate3":"",
76   - "hls_url_rate4":"",
  62 + "rates":"1,2,3,4",
77 63 "extViews"[
78 64
79   - "channelID":"xinyingshi",
80   - "mp4_url_rate1":"",
81   - "mp4_url_rate2":"http://api.cnlive.com/open/api2/live_ips/liveplayByAPP?channelID=xinyingshi&appId=iqj730vn11&isHLS=0",
82   - "mp4_url_rate3":"",
83   - "mp4_url_rate4":"",
84   - "hls_url_rate1":"",
85   - "hls_url_rate2":"http://api.cnlive.com/open/api2/live_ips/liveplayByAPP?channelID=xinyingshi&appId=iqj730vn11&isHLS=1",
86   - "hls_url_rate3":"",
87   - "hls_url_rate4":""
  65 + "channelID":"xinyingshi-1",
  66 + "rates":"2",
88 67 },
89 68
90   - "channelID":"xinyingshi",
91   - "mp4_url_rate1":"",
92   - "mp4_url_rate2":"http://api.cnlive.com/open/api2/live_ips/liveplayByAPP?channelID=xinyingshi&appId=iqj730vn11&isHLS=0",
93   - "mp4_url_rate3":"",
94   - "mp4_url_rate4":"",
95   - "hls_url_rate1":"",
96   - "hls_url_rate2":"http://api.cnlive.com/open/api2/live_ips/liveplayByAPP?channelID=xinyingshi&appId=iqj730vn11&isHLS=1",
97   - "hls_url_rate3":"",
98   - "hls_url_rate4":""
  69 + "channelID":"xinyingshi-2",
  70 + "rates":"2,3,4",
99 71
100 72 ]
101 73 }
... ...