All Products
Search
Document Center

Live-to-VOD

Last Updated: Jul 11, 2019

Initialize a client

Initialize a client before using the SDK. For more information, see initVodClient.

Query a list of VOD files created from live streams

For more information about the request and response parameters, see ListLiveRecordVideo.

function listLiveRecordVideo($client) {
    $request = new vod\ListLiveRecordVideoRequest();
    $request->setStartTime("2018-04-24T03:21:04Z"); 
    $request->setEndTime("2018-05-21T03:21:44Z"); 
    $request->setStreamName("testStreamName"); 
    $request->setDomainName("testdomain.aliyun.com"); 
    $request->setAppName("testAppName"); 
    return $client->getAcsResponse($request); 
}

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

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