全部产品
云市场

直播转点播

更新时间:2018-12-30 10:15:03

初始化客户端

使用前请先初始化客户端,参考 initVodClient 接口。

查询直转点视频列表

接口参数和返回字段请参考 ListLiveRecordVideo

  1. // 调用样例
  2. var client = initVodClient('<Your AccessKeyId>','<Your AccessKeySecret>');
  3. client.request("ListLiveRecordVideo", {
  4. StartTime: '2018-10-18T14:01:57Z',
  5. EndTime: '2018-10-20T14:01:57Z',
  6. StreamName: 'testStreamName',
  7. DomainName: 'testdomain.aliyun.com',
  8. AppName: 'AppName'
  9. }, {}).then(function (response) {
  10. if (response.LiveRecordVideoList && response.LiveRecordVideoList.LiveRecordVideo){
  11. console.log('LiveRecordVideoList.size = ' + response.LiveRecordVideoList.LiveRecordVideo.length);
  12. }
  13. console.log('RequestId = ' + response.RequestId);
  14. }).catch(function (response) {
  15. console.log('ErrorCode = ' + response.data.Code);
  16. console.log('ErrorMessage = ' + response.data.Message);
  17. console.log('RequestId = ' + response.data.RequestId);
  18. });