All Products
Document Center


Last Updated: Dec 14, 2021

This topic provides examples on how to use the API operations of the live-to-VOD module. The API operations are encapsulated in ApsaraVideo VOD SDK for PHP. You can call the API operations to query live-to-VOD videos.

Initialize a client

Before you can use the SDK, initialize a client. For more information, see Initialization.

Query live-to-VOD videos

You can call the ListLiveRecordVideo operation to query live-to-VOD videos.

For more information about the request and response parameters of this operation, see ListLiveRecordVideo. Example:

function listLiveRecordVideo($client) {
    $request = new vod\ListLiveRecordVideoRequest();
    return $client->getAcsResponse($request);

try {
    $client = initVodClient("<AccessKeyId>", "<AccessKeySecret>");

    $result = listLiveRecordVideo($client);
} catch (Exception $e) {
    print $e->getMessage()."\n";