全部产品
云市场

直播转点播

更新时间:2018-12-26 21:23:27

初始化客户端

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

查询直转点视频列表

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

  1. from aliyunsdkvod.request.v20170321 import ListLiveRecordVideoRequest
  2. def list_live_record_video(clt):
  3. request = ListLiveRecordVideoRequest.ListLiveRecordVideoRequest()
  4. request.set_StartTime("2018-04-24T03:21:04Z")
  5. request.set_EndTime("2018-05-21T03:21:44Z")
  6. request.set_StreamName("testStreamName")
  7. request.set_DomainName("testdomain.aliyun.com")
  8. request.set_AppName("testAppName")
  9. request.set_accept_format('JSON')
  10. response = json.loads(clt.do_action_with_exception(request))
  11. return response
  12. try:
  13. videoList = list_live_record_video(clt)
  14. print(json.dumps(videoList, ensure_ascii=False, indent=4))
  15. except Exception as e:
  16. print(e)
  17. print(traceback.format_exc())