点播列表

API 地址

api.yun.vhall.com/api/v1/record/lists

描述

按当前公共参数传入app_id对应的应用,获取点播列表

入参

关于公共请求参数详细内容,请参考 公共请求参数

参数 类型 是否必选 含义
pos int 获取条目节点,默认为 0。eg : 10 从第10条开始查询
limit int 获取条目数量,默认为10条,最大为1000条

出参

参数 类型 是否必选 含义
status int 0 上传完成 1(正常) 2(屏蔽) 3(审核中)
name string 点播名称
created_at string 创建时间
storage string 视频大小,单位KB
app_id string 应用ID
record_status string 生成回放状态,0:默认值,没有回调或者进行中;1:成功;2:失败
source string int 类型,0=回放,1=上传
room_id string 直播房间ID
duration int 视频时长,单位为秒
transcode_status int 转码状态:0新增排队中 1转码成功 2转码失败 3转码中 4转码部分成功
record_id string 点播ID
download_status int 0 不存在,1打包成功,2打包中
download_url string 下载地址

错误码

错误码 类型 含义
20006 int 当前回放查询为空
40008 int 分页起始提条目不正确
40009 int 分页条目不正确

响应格式

{
    "code": 200,
    "msg": "",
    "data": [
        {
            "status": 0,
            "name": "lss_f6d5ce23 2019-06-05 11:38:37",
            "created_at": "2019-06-05 11:38:37",
            "storage": 4391,
            "app_id": "e0871a28",
            "record_status": 1,
            "source": 0,
            "room_id": "lss_f6d5ce23",
            "duration": 32,
            "transcode_status": 0,
            "record_id": "f7bc91e6",
            "download_status": 0,
            "download_url": ""
        },
        {
            "status": 0,
            "name": "点播上传 2019-05-27 11:19:19",
            "created_at": "2019-05-27 11:19:19",
            "storage": 0,
            "app_id": "e0871a28",
            "record_status": 0,
            "source": 1,
            "room_id": "",
            "duration": 0,
            "transcode_status": 0,
            "record_id": "ab0a0023",
            "download_status": 0,
            "download_url": ""
        }
    ]
}