查询录制文件(荐)

最近更新时间:2019-08-09 16:09:35

1. 接口描述

域名:live.api.qcloud.com
接口名: GetVodRecordFiles

注意事项:
1.查询频道录制文件结果信息,包含文件名,任务 ID,文件 ID, 录制消息。
2.最长查询2个月内的录制文件。

2. 输入参数

参数名称 必选 类型 描述
channelId String 频道的 ID 号
startTime String 开始时间。中国标准时间,需要 URLEncode。如:2016-01-01 00:00:00,编码为:2016-01-01+00%3a00%3a00
endTime String 结束时间。中国标准时间,需要 URLEncode,默认不限结束时间
pageNum Int 页码,默认值1
pageSize Int 一页的记录数,默认值20

3. 输出参数

参数名称 类型 描述
code Int 错误码,0:成功,其他值:失败
message String 错误信息
total_count int 总返回文件数
filesInfo 数组 [ { "fileId": "9896125784085567721", "fileName": "直播 -aaa-20160112-1455-20160112-1457", "reportMessage": null, "taskId": "57", "startTime": "7", "endTime": "128" }]

4. 示例

输入1

https://domain/v2/index.php?Action=GetVodRecordFiles&channelId=9896125784085535840&startTime=2016-01-01+00%3A00%3A00&pageNum=1&pageSize=20

输出1

{
    "code": 0,
    "message": "",
    "codeDesc": "Success",
    "filesInfo": [
        {
            "fileId": "9896125784085567721",
            "fileName": "直播 -aaa-20160112-1455-20160112-1457",
            "reportMessage": null,
            "taskId": "57",
            "startTime": "7",
            "endTime": "128"
        },
        {
            "fileId": "9896125784085567722",
            "fileName": "直播 -aaa-20160112-1457-20160112-1459",
            "reportMessage": null,
            "taskId": "57",
            "startTime": "128",
            "endTime": "250"
        },
        {
            "fileId": "9896125784085567723",
            "fileName": "直播 -aaa-20160112-1459-20160112-1459",
            "reportMessage": null,
            "taskId": "57",
            "startTime": "250",
            "endTime": "299"
        },
        {
            "fileId": "9896125784085567727",
            "fileName": "直播 -aaa-20160112-1510-20160112-1512",
            "reportMessage": null,
            "taskId": "58",
            "startTime": "7",
            "endTime": "132"
        },
        {
            "fileId": "9896125784085567736",
            "fileName": "直播 -aaa-20160112-1512-20160112-1514",
            "reportMessage": null,
            "taskId": "58",
            "startTime": "132",
            "endTime": "258"
        },
        {
            "fileId": "9896125784085567739",
            "fileName": "直播 -aaa-20160112-1514-20160112-1515",
            "reportMessage": null,
            "taskId": "58",
            "startTime": "258",
            "endTime": "301"
        },
        {
            "fileId": "9896125784085567756",
            "fileName": "直播 -aaa-20160112-1525-20160112-1526",
            "reportMessage": null,
            "taskId": "61",
            "startTime": "7",
            "endTime": "60"
        }
    ],
    "totalCount": 7
}