更新时间:2021-04-02 13:36:38
通过该回调配置知悉视频上传回调结果,回调配置入口详细见:回调设置
POST请求
无
同接口: 批量获取视频列表信息
通用返回结果详见返回结果
成功时返回的data参数的数据结构
参数名 | 类型 | 描述 |
---|---|---|
videoTotal | int | 当前返回的视频列表信息的记录数,注意这里返回的记录数只是当前页的记录数。 |
videoListInfo | array | 视频列表信息 |
videoListInfo数组元素数据结构
参数名 | 类型 | 描述 |
---|---|---|
videoName | string | 视频名称 |
videoId | string | 视频ID |
createUser | string | 创建人 |
encrypt | int | 是否加密转码文件。取值范围 : |
videoSize | string | 视频占用空间大小,视频及其转码后视频的总空间使用量 |
videoDuration | string | 视频时长 |
createTime | string | 视频创建时间 |
uploadTime | string | 视频上传时间 |
updateTime | string | 视频修改时间 |
videoDescription | string | 视频描述 |
videoClassification | string | 视频分类 |
imageUrl | string | 视频封面URL |
publishDomain | string | 视频的发布域名 |
flashPlayerName | string | 视频使用的flash播放器名称 |
flashPlayerId | string | 视频使用的flash播放器ID |
flashImageRatio | int | 播放器画面比例 取值范围: |
flashAutoPlay | int | 是否自动播放 取值范围: |
videoState | string | 视频状态 取值范围: |
transcodeState | string | 未开启授权播放,视频的转码状态的取值范围 : |
videoSourceCode | int | 视频来源 取值范围: |
videoResolutions | array | 视频分辨率等信息 |
videoResolutions数组元素数据结构
参数详见 数据结构
参数名 | 类型 | 描述 |
---|---|---|
clarity | int | 清晰度。取值范围 : |
serverType | int | 终端类型。取值范围 : |
height | int | 高度 |
width | int | 宽度 |
fileSize | long | 文件大小(单位为bit) |
无
{
"code": 200,
"data": {
"videoListInfo": [
{
"createUser": "testUser",
"encrypt": 0,
"flashAutoPlay": 1,
"flashImageRatio": 0,
"flashPlayerId": "DF2DAF233DDA",
"flashPlayerName": "基础播放器",
"imageUrl": "http://ovptest.haplat.net//live/201708/4101630234a74ee8864e56ea88e5d290_20170801171220/cloudv-cover/9B0F7BA8BCB9D056D4C24ADDBF821D10.jpg",
"publishDomain": "ovptest.haplat.net",
"transcodeState": "5",
"updateTime": "1501578874",
"uploadTime": "1501578866",
"videoClassification": "无",
"videoDescription": "",
"videoDuration": "36",
"videoId": "9B0F7BA8BCB9D056D4C24ADDBF821D10",
"videoName": "creattest_20170801171220",
"videoResolutions": [
{
"clarity": -99,
"fileSize": 5579209,
"height": 768,
"serverType": -1,
"width": 1364
},
{
"clarity": 1,
"fileSize": 5573951,
"height": 768,
"serverType": -1,
"width": 1364
}
],
"videoSize": "11153160",
"videoSourceCode": 2,
"videoState": "0"
},
{
"createUser": "testUser",
"encrypt": 0,
"flashAutoPlay": 1,
"flashImageRatio": 0,
"flashPlayerId": "DF2DAF233DDA",
"flashPlayerName": "基础播放器",
"imageUrl": "http://ovptest.haplat.net//live/201708/4101630234a74ee8864e56ea88e5d290_20170801171104/cloudv-cover/E869FC95F3C7493ED56E8751C4AA7BEE.jpg",
"publishDomain": "ovptest.haplat.net",
"transcodeState": "5",
"updateTime": "1501578796",
"uploadTime": "1501578790",
"videoClassification": "无",
"videoDescription": "",
"videoDuration": "15",
"videoId": "E869FC95F3C7493ED56E8751C4AA7BEE",
"videoName": "creattest_20170801171104",
"videoResolutions": [
{
"clarity": -99,
"fileSize": 2533394,
"height": 768,
"serverType": -1,
"width": 1364
},
{
"clarity": 1,
"fileSize": 2531523,
"height": 768,
"serverType": -1,
"width": 1364
}
],
"videoSize": "5064917",
"videoSourceCode": 2,
"videoState": "0"
}
],
"videoTotal": 2
},
"message": "操作成功"
}
通用错误码详见 返回结果