Commit 8a9610e7005818f6cbfa4fce0a3e405400172479
1 parent
e9a0d4e0
update
Showing
1 changed file
with
11 additions
and
13 deletions
01.点播云/3.4 短视频入库点播云.md
| 1 | -#### 2.5 金山短视频获取上传信息接口 | 1 | +#### 短视频入库点播云接口for app |
| 2 | ----- | 2 | ----- |
| 3 | -#### URL: http://api.cnlive.com/open/api2/vod_epg/ugcSDKForApp | 3 | +#### URL: http://api.cnlive.com/open/api2/vod_epg/inputMamForAPP |
| 4 | ----- | 4 | ----- |
| 5 | -#### 创建video upload 信息进行存储 | 5 | +#### 创建短视频信息进行存储 |
| 6 | ----- | 6 | ----- |
| 7 | #### 请求方式: HTTP POST | 7 | #### 请求方式: HTTP POST |
| 8 | ----- | 8 | ----- |
| @@ -13,13 +13,14 @@ | @@ -13,13 +13,14 @@ | ||
| 13 | | :----------- | :------: | :------: | :------: | | 13 | | :----------- | :------: | :------: | :------: | |
| 14 | | md5 | string | true | MD5 | | 14 | | md5 | string | true | MD5 | |
| 15 | | appId | string | true | APPID | | 15 | | appId | string | true | APPID | |
| 16 | -| name | string | true | 上传视频名称 | | ||
| 17 | -| description| string | true | 上传视频的信息描述 | | 16 | +| videoKey | string | true | 短视频相对路径(支持金山云存储)| |
| 17 | +| name | string | true | 短视频名称 | | ||
| 18 | +| description| string | true | 短视频的信息描述 | | ||
| 18 | | isHorizontalScreen | int | true | 屏幕方向,0:垂直即竖屏 /1:水平即横屏 ,默认为1 | | 19 | | isHorizontalScreen | int | true | 屏幕方向,0:垂直即竖屏 /1:水平即横屏 ,默认为1 | |
| 19 | -| suffix | string | true | 上传视频的后缀名 | | ||
| 20 | -| userId| string | true | 上传视频的信息用户标识 | | ||
| 21 | -| callBackUrl| string | false | 上传视频信息回调地址 | | ||
| 22 | -|platform_id| string | true | APP bundleID 或者是包名,平台鉴权使用 | | 20 | +| suffix | string | true | 短视频的后缀名 | |
| 21 | +| userId| string | true | 短视频的信息用户标识 | | ||
| 22 | +| callBackUrl| string | false | 短视频信息回调地址 | | ||
| 23 | +|platform_id| string | true | APP bundleID 或者是包名,平台鉴权使用| | ||
| 23 | |timestamp| int | true | 精确到秒,当前Unix时间戳,请保证请求服务器时间正确 | | 24 | |timestamp| int | true | 精确到秒,当前Unix时间戳,请保证请求服务器时间正确 | |
| 24 | |sign| String | true | 签名规则见 [签名详情] (http://bj.gitlab.cnlive.com/OPEN-API/WIKI/blob/master/00.%E5%85%AC%E5%85%B1%E7%BB%84%E4%BB%B6/1.1%20SHA1%E7%AD%BE%E5%90%8D.md) | | 25 | |sign| String | true | 签名规则见 [签名详情] (http://bj.gitlab.cnlive.com/OPEN-API/WIKI/blob/master/00.%E5%85%AC%E5%85%B1%E7%BB%84%E4%BB%B6/1.1%20SHA1%E7%AD%BE%E5%90%8D.md) | |
| 25 | 26 | ||
| @@ -28,11 +29,8 @@ json | @@ -28,11 +29,8 @@ json | ||
| 28 | ```json | 29 | ```json |
| 29 | { | 30 | { |
| 30 | "errorCode":"0", | 31 | "errorCode":"0", |
| 31 | - "errorMessage":"获取信息成功", | 32 | + "errorMessage":"短视频入库成功", |
| 32 | "data" { | 33 | "data" { |
| 33 | - "bucketName": "cnlive-test", | ||
| 34 | - "shortVideoKey": "http://testwideo.cnlive.com/svvod/2/2017/0627/2_c82802df00284ca0b731f4f576c1315b.mp4", | ||
| 35 | - "picKey": "http://testwideo.cnlive.com/svpic/2/2017/0627/2_c82802df00284ca0b731f4f576c1315b.jpg", | ||
| 36 | "videoId":"c82802df00284ca0b731f4f576c1315b" | 34 | "videoId":"c82802df00284ca0b731f4f576c1315b" |
| 37 | } | 35 | } |
| 38 | } | 36 | } |