Commit e9a0d4e0efb38b7ca5383c8f5ec414aefe6ac415
1 parent
cdc84d55
短视频入库点播云接口文档
Showing
1 changed file
with
39 additions
and
0 deletions
01.点播云/3.4 短视频入库点播云.md
0 → 100644
| 1 | +#### 2.5 金山短视频获取上传信息接口 | ||
| 2 | +----- | ||
| 3 | +#### URL: http://api.cnlive.com/open/api2/vod_epg/ugcSDKForApp | ||
| 4 | +----- | ||
| 5 | +#### 创建video upload 信息进行存储 | ||
| 6 | +----- | ||
| 7 | +#### 请求方式: HTTP POST | ||
| 8 | +----- | ||
| 9 | +#### 返回格式: 200 | ||
| 10 | +----- | ||
| 11 | +#### 请求参数说明: | ||
| 12 | +| 参数名 | 参数类型 | 必选 | 参数说明 | | ||
| 13 | +| :----------- | :------: | :------: | :------: | | ||
| 14 | +| md5 | string | true | MD5 | | ||
| 15 | +| appId | string | true | APPID | | ||
| 16 | +| name | string | true | 上传视频名称 | | ||
| 17 | +| description| string | true | 上传视频的信息描述 | | ||
| 18 | +| 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 或者是包名,平台鉴权使用 | | ||
| 23 | +|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 | + | ||
| 26 | +json | ||
| 27 | + | ||
| 28 | +```json | ||
| 29 | +{ | ||
| 30 | + "errorCode":"0", | ||
| 31 | + "errorMessage":"获取信息成功", | ||
| 32 | + "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" | ||
| 37 | + } | ||
| 38 | +} | ||
| 39 | +``` | ||
| 0 | \ No newline at end of file | 40 | \ No newline at end of file |