全部产品
云市场

直播转点播

更新时间:2019-01-17 13:43:29

初始化客户端

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

查询直转点视频列表

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

  1. #include <stdio.h>
  2. #include <string>
  3. #include <map>
  4. #include <jsoncpp/json/json.h>
  5. #include "vod_sdk/openApiUtil.h"
  6. /*查询直播转点播视频列表函数*/
  7. VodApiResponse listLiveRecordVideo(VodCredential authInfo) {
  8. string apiName = "ListLiveRecordVideo";
  9. map<string, string> args;
  10. args["StartTime"] = "2018-04-24T03:21:04Z";
  11. args["EndTime"] = "2018-05-21T03:21:44Z";
  12. args["StreamName"] = "testStreamName";
  13. args["DomainName"] = "testdomain.aliyun.com";
  14. args["AppName"] = "testAppName";
  15. return getAcsResponse(authInfo, apiName, args);
  16. }
  17. // 请求示例
  18. void main() {
  19. VodCredential authInfo = initVodClient("<Your AccessKeyId>", "<Your AccessKeySecret>");
  20. VodApiResponse response = listLiveRecordVideo(authInfo);
  21. printf("httpCode: %d, result: %s\n", response.httpCode, response.result.c_str());
  22. }