Commit a41ca99dfdd10cb48be5d6b9d57e05eb927872a0
1 parent
21f99619
添加回调接口
Showing
1 changed file
with
30 additions
and
0 deletions
02.直播云/2.4 回调接口.md
0 → 100644
| 1 | +### 获取推流直播播放地址(ugc) | |
| 2 | +----- | |
| 3 | +#### http://api.cnlive.com/open/api2/live_epg/play/h5 | |
| 4 | +----- | |
| 5 | +#### 接口说明: | |
| 6 | + | |
| 7 | +----- | |
| 8 | +#### 请求方式: HTTP GET | |
| 9 | +----- | |
| 10 | +#### 返回格式: ugc推流:200、pgc推流:302 | |
| 11 | +----- | |
| 12 | +#### 请求参数说明: | |
| 13 | +| 参数名 | 参数类型 | 必选 | 参数说明 | | |
| 14 | +| :----------- | :------: | :------: | :------: | | |
| 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> | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | +#### 返回结果 json | |
| 22 | +```json | |
| 23 | + { | |
| 24 | + "errorMessage":"成功", | |
| 25 | + "data":{ | |
| 26 | + "location":"rtmp://wsrtmp4.live.cnlive.com/cdn/xinyingshi?wsSecret=f10722a1a2ffd198772b2ac8cf1c0afb&wsTime=57a3f066" | |
| 27 | + }, | |
| 28 | + "errorCode":"0" | |
| 29 | + } | |
| 30 | +``` | |
| 0 | 31 | \ No newline at end of file | ... | ... |