Commit 5a6da09dda776b778d3ed0ada345db116097ba96

Authored by 张奎
1 parent 07e5dd99

修改接口

01.点播云/3.0 获取点播列表接口Server.md 0 → 100644
  1 +/*
  2 +Title: 1.1 获取点播信息接口
  3 +*/
  4 +
  5 +### 接口描述 ###
  6 +
  7 +
  8 +### 接口地址 ###
  9 +http://api.cnlive.com/open/api2/vod_epg/getVodInfo4Server
  10 +
  11 +### 接口协议 ###
  12 +HTTP GET
  13 +
  14 +### 接口请求参数 ###
  15 +|参数名| 参数类型 | 必选 | 参数说明 |
  16 +|:----- | :------: | :------: | :------: |
  17 +|appId| string | true | 应用ID |
  18 +|vId| string | true | 点播节目标识(直播回放的vId就是创建直播活动时的activityId) |
  19 +|timestamp| int | true | 精确到秒,当前Unix时间戳,请保证请求服务器时间正确 |
  20 +|sign| String | true | 签名规则见 [签名详情] (http://help.open.cnlive.com/common.html) |
  21 +
  22 +### 返回值 ###
  23 +
  24 +| 参数名 | 参数类型 | 必选 | 参数说明 |
  25 +| :-----------| :------: | :------: | :------: |
  26 +| errorCode| int | true | 错误类型号 |
  27 +| errorMessage| string | true | 错误类型 |
  28 +| videoName| string | true | 节目标题 |
  29 +| subTitle| string | false | 节目副标题 |
  30 +| desc| string | false | 节目描述 |
  31 +| categoryName| string | false | 分类名称 |
  32 +| customCategoryName| string | true | 自定义分类名称 |
  33 +| tag| string | false | 标签,多个以 逗号分隔 |
  34 +| videoId| string | true | 节目的唯一标识 |
  35 +| duration| int | false | 时长,单位 : 毫秒 |
  36 +| showFileSize| string | false | 文件大小 |
  37 +| spid| int | false | 所属sp |
  38 +| institutionName| string | true | 机构名称 |
  39 +| imginfos| map | false | 图片信息|
  40 +| rates | string | ture |清晰度标识,多个用逗号隔开: 流畅版=1,清晰版=2,高清版=3,超高清=4 |
  41 +| playUrls| Array | false | 播放url|
  42 +
  43 +返回JSON格式的节目元数据信息,json示例如下:
  44 +
  45 +``` json
  46 +{
  47 + "data":{
  48 + "categoryName":"资讯",
  49 + "desc":"一带一路特别节目",
  50 + "duration":324000,
  51 + "imginfos":{
  52 + "316*506":"http://test.qnvod.cnlive.com/60/img/2017/0809/ff8080815dc0be57015dc4c1fe380061/000002.jpg?imageView2/1/w/316/h/506",
  53 + "112*63":"http://test.qnvod.cnlive.com/60/img/2017/0809/ff8080815dc0be57015dc4c1fe380061/000002.jpg?imageView2/1/w/112/h/63",
  54 + "224*126":"http://test.qnvod.cnlive.com/60/img/2017/0809/ff8080815dc0be57015dc4c1fe380061/000002.jpg?imageView2/1/w/224/h/126",
  55 + "224*398":"http://test.qnvod.cnlive.com/60/img/2017/0809/ff8080815dc0be57015dc4c1fe380061/000002.jpg?imageView2/1/w/224/h/398",
  56 + "485*303":"http://test.qnvod.cnlive.com/60/img/2017/0809/ff8080815dc0be57015dc4c1fe380061/000002.jpg?imageView2/1/w/485/h/303"
  57 + },
  58 + "institutionName":"阿斯蒂芬村",
  59 + "rates":"1,2",
  60 + "showFileSize":418501536,
  61 + "spid":60,
  62 + "subTitle":"",
  63 + "tag":"丝绸之路,一带一路,文化交流,中华文化",
  64 + "videoId":"17cbfede6f074db18d06fdeb170e41c4",
  65 + "videoName":"大道之行一带一路",
  66 + "playUrls":[
  67 + {
  68 + "rate":2,
  69 + "fmt":"hls",
  70 + "url":"http://xxx.m3u8"
  71 + },
  72 + {
  73 + "rate":2,
  74 + "fmt":"mp4",
  75 + "url":"http://xxx.mp4"
  76 + }
  77 + ]
  78 + },
  79 + "errorCode":0,
  80 + "errorMessage":"sucess"
  81 +}
  82 +```
... ...