Query Recording File (Recommended)

Last updated: 2020-06-07 19:14:31

    Note:

    This is a legacy API which has been hidden and will no longer be updated. We recommend using the new LVB API 3.0 which is standardized and faster.

    1. API Description

    Domain name: live.api.qcloud.com

    Notes:

    1. This API (GetVodRecordFiles) is used to query the result of the recorded file of channel, including file name, task ID, file ID, and recording message.
    2. You can query files recorded in the last two months.

    2. Input Parameters

    Parameter Name Required Type Description
    channelId Yes String Channel ID
    startTime Yes String Enter the value encoded from YYYY-MM-DD HH:MM:SS For example: 2016-01-01%2000:00:00 (encoded from 2016-01-01 00:00:00)
    endTime No String Enter YYYY-MM-DD HH:MM:SS (encoded value). There is no limit on the end time by default
    pageNum No Int Page number. Default is 1
    pageSize No Int Number of records in a page. Default is 20

    3. Output Parameters

    Parameter Name Type Description
    code Int Error code. 0: Successful; other values: Failed
    message String Error message
    total_count int Total number of returned files
    filesInfo Array [ { "fileId": "9896125784085567721", "fileName": "LVB -aaa-20160112-1455-20160112-1457", "reportMessage": null, "taskId": "57", "startTime": "7", "endTime": "128" }]

    4. Example

    Input 1

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

    Output 1

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

    Was this page helpful?

    Was this page helpful?

    • Not at all
    • Not very helpful
    • Somewhat helpful
    • Very helpful
    • Extremely helpful
    Send Feedback
    Help