获取点播文件和不同清晰度属性信息
API 地址
api.yun.vhall.com/api/v1/record/get-record-info
描述
获取点播和不同清晰度的时长,空间占用信息
入参
关于公共请求参数详细内容,请参考 公共请求参数。
参数 |
类型 |
是否必选 |
含义 |
record_id |
string |
是 |
点播ID |
出参
参数 |
类型 |
是否必选 |
含义 |
duration |
int |
是 |
时长 单位 (秒) |
storage |
int |
是 |
总占用空间 单位 (KB) |
created_at |
string |
是 |
创建时间 |
list |
obj |
否 |
转码信息 |
list参数
参数 |
类型 |
是否必选 |
含义 |
quality |
string |
是 |
清晰度 |
storage |
int |
是 |
总占用空间 单位 (KB) |
transcode_status |
string |
是 |
转码状态 0新增排队中 1转码成功 2转码失败 3转码中 |
错误码
错误码 |
类型 |
含义 |
10015 |
int |
回放ID不能为空 |
20006 |
int |
当前回放查询为空 |
30010 |
int |
不是当前点播拥有者 |
响应格式
{
"code": 200,
"msg": "",
"data": {
"duration": 159,
"storage": 51561,
"created_at": "2018-02-26 14:39:28",
"list": [
{
"quality": "720p",
"storage": 15852,
"transcode_status": 1
},
{
"quality": "480p",
"storage": 11677,
"transcode_status": 1
},
{
"quality": "360p",
"storage": 9291,
"transcode_status": 1
},
{
"quality": "a",
"storage": 2563,
"transcode_status": 1
}
]
}
}