Commit 8635b750b9138d5daf5e40e26f100b82ac0e94d7

Authored by 刘炯
1 parent 50c368a0

1

Showing 1 changed file with 22 additions and 31 deletions
02.直播云/2.4 回调接口.md
1   -### 直播活动数据、状态有变动,通过改回调接口通知第三方业务系统
2   ------
3   -#### 第三方在 建立活动时提供
  1 +### 接口描述
  2 + > 直播活动创建、开始、结束,通过该回调接口通知第三方业务系统
  3 + > 业务系统在创建活动时提供接口地址
  4 +
  5 +#### 请求方式: HTTP POST
  6 +
4 7 -----
5 8 #### 接口说明: 第三方业务提供接口地址,在申请appId的同时在统一平台进行注册。
6   ------
7   -#### 请求方式: HTTP POST
8   ------
9   -#### 返回格式: json
10   ------
  9 +
11 10 #### 请求参数说明:
12 11 | 参数名 | 参数类型 | 必选 | 参数说明 |
13 12 | :----------- | :------: | :------: | :------: |
14 13 | data | string | true | 活动 json 数据 |
15 14 | status | string | true | 操作符 -2:异常中断、0:直播未开始、1:直播开始、2:正常结束、3:活动数据更新 |
16 15  
  16 +#### data 格式
17 17  
18   -
19   -###data 格式
20   -
21   -```
  18 +```json
22 19 {
23   -activityName: "",
24   -activityStatus: 0,
25   -startTime: 2016-08-23 10:37:38,
26   -endTime: null,
27   -description: null,
28   -playbackUrl: "http://cnlive-ugc.ks3-cn-beijing.ksyun.com/record/live/1471919861222/hls/1471919861222-1471919861222.m3u8",
29   -coverImgUrl: "",
30   -liveUrl: "rtmp://jsrtmp.cnlive.com/live/1471919861222",
31   -hlsLiveUrl: "http://jshls.cnlive.com/live/1471919861222/index.m3u8",
32   -activityCategory:"",
33   -extensions: "",
34   -uuid:"",
35   -isHorizontalScreen: 1,
36   -createTime: "2016-08-23 10:37:38",
37   -activityId: "1471919861222",
38   -appId: "60_irg1rhs308",
39   -channelId:""
  20 + activityName: "",
  21 + startTime: 2016-08-23 10:37:38,
  22 + endTime: null,
  23 + description: null,
  24 + coverImgUrl: "",
  25 + activityCategory:"",
  26 + extensions: "",
  27 + uuid:"",
  28 + isHorizontalScreen: 1,
  29 + createTime: "2016-08-23 10:37:38",
  30 + activityId: "1471919861222",
  31 + appId: "60_irg1rhs308",
  32 + channelId:""
40 33 }
41   -
42   -
43 34 ```
44 35  
45 36 #### 返回结果 json
... ...