Commit aa62d0dcd9a7ff6ed107a64e16316a0c9a92d664
1 parent
ab7324c1
2
Showing
1 changed file
with
58 additions
and
0 deletions
02.直播云/1.01 播放器获取EPG信息接口.md
0 → 100644
| 1 | +/* | ||
| 2 | +Title: 1.01 播放器获取点播信息接口 | ||
| 3 | +*/ | ||
| 4 | + | ||
| 5 | +### 接口描述 ### | ||
| 6 | + | ||
| 7 | + | ||
| 8 | +### 接口地址 ### | ||
| 9 | +http://api.cnlive.com/open/api2/vod_epg/getVodInfo4Player | ||
| 10 | + | ||
| 11 | +### 接口协议 ### | ||
| 12 | +HTTP GET | ||
| 13 | + | ||
| 14 | +### 接口请求参数 ### | ||
| 15 | +|参数名| 参数类型 | 必选 | 参数说明 | | ||
| 16 | +|:----- | :------: | :------: | :------: | | ||
| 17 | +|appId| string | true | 应用ID | | ||
| 18 | +|vId| string | true | 点播节目标识(直播回放的vId就是创建直播活动时的activityId) | | ||
| 19 | +|uid| string | false | 用户标识(uuid_时间戳) | | ||
| 20 | +|sid| String | false | 用户ID | | ||
| 21 | +|retry| int | false | 重试次数,在0~4之间累加 | | ||
| 22 | +|isHLS| int | false | 0:mp4流,1:hls流 | | ||
| 23 | + | ||
| 24 | +### 返回值 ### | ||
| 25 | + | ||
| 26 | +| 参数名 | 参数类型 | 必选 | 参数说明 | | ||
| 27 | +| :-----------| :------: | :------: | :------: | | ||
| 28 | +| errorCode| int | true | 错误类型号 | | ||
| 29 | +| errorMessage| string | true | 错误信息 | | ||
| 30 | +| title| string | true | 节目标题 | | ||
| 31 | +| subTitle| string | false | 节目副标题 | | ||
| 32 | +| description| string | false | 节目描述 | | ||
| 33 | +| status| string | true | 节目状态,1:上线,2:下线 | | ||
| 34 | +| vId| string | true | 节目的唯一标识 | | ||
| 35 | +| videoUrl_1 | string | false |播放地址 流畅版 | | ||
| 36 | +| videoUrl_2 | string | true |播放地址 清晰版 | | ||
| 37 | +| videoUrl_3 | string | false |播放地址 高清版 | | ||
| 38 | +| videoUrl_4 | string | false |播放地址 超高清 | | ||
| 39 | + | ||
| 40 | +返回JSON格式的节目元数据信息,json示例如下: | ||
| 41 | + | ||
| 42 | +``` json | ||
| 43 | +{ | ||
| 44 | + "errorMessage":"请求成功", | ||
| 45 | + "data":{ | ||
| 46 | + "status":"1", | ||
| 47 | + "vId":"174e6c5f3d9e4ddeb739feed1906fa11", | ||
| 48 | + "subTitle":"BTOB对粉丝甜喊:我想你们了", | ||
| 49 | + "title":"BTOB甜喊:我想你们了", | ||
| 50 | + "description":"@TV娱乐前线:韩国男团BTOB近日在台北国际会议中心举行演唱会。", | ||
| 51 | + "videoUrl_1":"*****", | ||
| 52 | + "videoUrl_2":"*****", | ||
| 53 | + "videoUrl_3":"*****", | ||
| 54 | + "videoUrl_4":"*****" | ||
| 55 | + }, | ||
| 56 | + "errorCode":"0" | ||
| 57 | +} | ||
| 58 | +``` | ||
| 0 | \ No newline at end of file | 59 | \ No newline at end of file |