Commit 7bf44a68afb69e8dd303d8724adeb4d2d5324984
1 parent
6b0bf147
faith
Showing
1 changed file
with
12 additions
and
10 deletions
8.直播云/1.3 创建直播活动接口.md
| 1 | -### 获取直播URL接口 | 1 | +### 创建直播活动接口 |
| 2 | ----- | 2 | ----- |
| 3 | -#### URL: http://api.cnlive.com/open/api3/play/IPS/liveplay?cid=xinyingshi&sp_id=xxxx | 3 | +#### URL: http://api.cnlive.com/open/api3/play/IPS/CreateActivity |
| 4 | ----- | 4 | ----- |
| 5 | #### 接口说明: 返回直播播放地址 | 5 | #### 接口说明: 返回直播播放地址 |
| 6 | ----- | 6 | ----- |
| 7 | #### 请求方式: HTTP GET | 7 | #### 请求方式: HTTP GET |
| 8 | ----- | 8 | ----- |
| 9 | -#### 返回格式: 302 | 9 | +#### 返回格式: 200 |
| 10 | ----- | 10 | ----- |
| 11 | #### 请求参数说明: | 11 | #### 请求参数说明: |
| 12 | | 参数名 | 参数类型 | 必选 | 参数说明 | | 12 | | 参数名 | 参数类型 | 必选 | 参数说明 | |
| 13 | | :----------- | :------: | :------: | :------: | | 13 | | :----------- | :------: | :------: | :------: | |
| 14 | | sp_id | string | true | 应用ID | | 14 | | sp_id | string | true | 应用ID | |
| 15 | -| cid| string | true | 直播频道ID | | ||
| 16 | -| uid| string | false | 用户标识(uuid_时间戳),不传为0 | | ||
| 17 | -| sid| string | false | 用户ID,不传为0 | | ||
| 18 | -| type | string | false | hls(H5/APP使用),mp4(Flash使用),不传则默认为hls | ||
| 19 | -| retry | int | false | 重试次数,从0开始,不断累加,不传为0 | | ||
| 20 | -| rate | int | false | 1-流畅,2-标清,3-高清,4-超清,不传为0 | | ||
| 21 | -| sign | String | false | APP必须使用,H5不用,签名规则见<a href="http://help.open.cnlive.com/common.html">签名详情</a> | | ||
| 22 | \ No newline at end of file | 15 | \ No newline at end of file |
| 16 | +| activityid| string | true | 活动ID,确保SP下的唯一性 | | ||
| 17 | +| sign | String | true | 签名规则见<a href="http://help.open.cnlive.com/common.html">签名详情</a> | | ||
| 18 | + | ||
| 19 | +#### 返回说明: | ||
| 20 | + | ||
| 21 | +{ | ||
| 22 | + "errorCode":"0", | ||
| 23 | + "messagae":"请求成功" | ||
| 24 | +} | ||
| 23 | \ No newline at end of file | 25 | \ No newline at end of file |