2.5 短视频上传接口4APP.md 1.61 KB

2.5 金山短视频获取上传信息接口


URL: http://api.cnlive.com/open/api2/vod_epg/ugcSDKForApp


创建video upload 信息进行存储


请求方式: HTTP POST


返回格式: 200


请求参数说明:

参数名 参数类型 必选 参数说明
md5 string true MD5
appId string true APPID
name string true 上传视频名称
description string true 上传视频的信息描述
isHorizontalScreen int true 屏幕方向,0:垂直即竖屏 /1:水平即横屏 ,默认为1
suffix string true 上传视频的后缀名
userId string true 上传视频的信息用户标识
callBackUrl string false 上传视频信息回调地址
platform_id string true APP bundleID 或者是包名,平台鉴权使用
timestamp int true 精确到秒,当前Unix时间戳,请保证请求服务器时间正确
sign String true 签名规则见 签名详情

json

{
    "errorCode":"0",
    "errorMessage":"获取信息成功",
    "data" {
        "bucketName": "cnlive-test",
        "shortVideoKey": "http://testwideo.cnlive.com/svvod/2/2017/0627/2_c82802df00284ca0b731f4f576c1315b.mp4",
        "picKey": "http://testwideo.cnlive.com/svpic/2/2017/0627/2_c82802df00284ca0b731f4f576c1315b.jpg",
        "videoId":"c82802df00284ca0b731f4f576c1315b"
    }
}