Commit a3606d701871bcbb402e64bf1904448eb1f414e5

Authored by 刘基城
1 parent 48f1fe86

xiug

Showing 1 changed file with 27 additions and 11 deletions
02.直播云/2.4 回调接口.md
1 -### 获取推流直播播放地址(ugc) 1 +### 直播活动数据、状态有变动,通过改回调接口通知第三方业务系统
2 ----- 2 -----
3 #### http://api.cnlive.com/open/api2/live_epg/play/h5 3 #### http://api.cnlive.com/open/api2/live_epg/play/h5
4 ----- 4 -----
5 -#### 接口说明:  
6 - 5 +#### 接口说明: 第三方业务提供接口地址,在申请appId的同时在统一平台进行注册。
7 ----- 6 -----
8 -#### 请求方式: HTTP GET 7 +#### 请求方式: HTTP POST
9 ----- 8 -----
10 -#### 返回格式: ugc推流:200、pgc推流:302 9 +#### 返回格式: json
11 ----- 10 -----
12 #### 请求参数说明: 11 #### 请求参数说明:
13 | 参数名 | 参数类型 | 必选 | 参数说明 | 12 | 参数名 | 参数类型 | 必选 | 参数说明 |
14 | :----------- | :------: | :------: | :------: | 13 | :----------- | :------: | :------: | :------: |
15 -| appId | string | true | 应用ID |  
16 -| activityId| string | true | 活动ID,确保SP下的唯一性 |  
17 -| sign | String | true | 签名规则见<a href="http://help.open.cnlive.com/common.html">签名详情</a> | 14 +| data | string | true | 活动 json 数据 ```{
  15 +activityName: "",
  16 +activityStatus: 0,
  17 +startTime: 2016-08-23 10:37:38,
  18 +endTime: null,
  19 +description: null,
  20 +playbackUrl: "http://cnlive-ugc.ks3-cn-beijing.ksyun.com/record/live/1471919861222/hls/1471919861222-1471919861222.m3u8",
  21 +coverImgUrl: "",
  22 +liveUrl: "rtmp://jsrtmp.cnlive.com/live/1471919861222",
  23 +hlsLiveUrl: "http://jshls.cnlive.com/live/1471919861222/index.m3u8",
  24 +activityCategory:"",
  25 +extensions: "",
  26 +uuid:"",
  27 +isHorizontalScreen: 1,
  28 +createTime: "2016-08-23 10:37:38",
  29 +activityId: "1471919861222",
  30 +appId: "60_irg1rhs308",
  31 +channelId:""
  32 +}
  33 +``` |
  34 +| data | string | true | 活动 json 数据 |
  35 +
  36 +
18 37
19 38
20 39
@@ -22,9 +41,6 @@ @@ -22,9 +41,6 @@
22 ```json 41 ```json
23 { 42 {
24 "errorMessage":"成功", 43 "errorMessage":"成功",
25 - "data":{  
26 - "location":"rtmp://wsrtmp4.live.cnlive.com/cdn/xinyingshi?wsSecret=f10722a1a2ffd198772b2ac8cf1c0afb&wsTime=57a3f066"  
27 - },  
28 "errorCode":"0" 44 "errorCode":"0"
29 } 45 }
30 ``` 46 ```
31 \ No newline at end of file 47 \ No newline at end of file