视频直播 LIVE-创建录制视频索引文件:响应示例

时间:2024-07-19 14:22:38

响应示例

状态码: 201

创建录制视频索引操作成功

{
  "index_url" : "http://obs***.com/push.test.com/live/stream01-20220901000000-20220901001000.m3u8",
  "duration" : 600,
  "height" : 1080,
  "width" : 720,
  "publish_domain" : "push.test.com",
  "app" : "live",
  "stream" : "stream01",
  "start_time" : "2022-09-01T00:00:00Z",
  "end_time" : "2022-09-01T00:10:00Z",
  "bucket" : "obs_bucket_name",
  "location" : "cn-north-5",
  "object" : "push.test.com/live/stream01-20220901000000-20220901001000.m3u8"
}

状态码: 400

创建录制视频索引操作失败,常见错误:

  • illegal time range:请求时间范围有误,请查看start_time,end_time参数限制;

  • no record info found:请求时间段内没有录制任务,可能是时间段内没有成功推送的直播流或命令录制规则下未启动命令录制;

  • no ts info found:请求时间段内没有ts文件,可能是请求时间段推流有断流或请求时ts切片文件还没录制结束。

{
  "error_code" : "LIVE.100011001",
  "error_msg" : "参数校验失败"
}
support.huaweicloud.com/api-live/CreateRecordIndex.html