视频直播 LIVE-查询录制规则列表:响应示例

时间:2024-12-10 10:58:37

响应示例

状态码: 200

查询录制配置成功

{
  "total" : 1,
  "record_config" : [ {
    "id" : "42810594c2fc9xxxx36b7784c76a06e8",
    "publish_domain" : "publish.example.com",
    "app" : "live",
    "stream" : "*",
    "record_type" : "CONTINUOUS_RECORD",
    "default_record_config" : {
      "record_format" : [ "HLS" ],
      "obs_addr" : {
        "bucket" : "mybucket",
        "location" : "region1",
        "object" : "record/"
      },
      "hls_config" : {
        "record_cycle" : 900,
        "record_prefix" : "record-publish_domain-app-stream-file_start_time_unix/record-publish_domain-app-stream-file_start_time_unix",
        "record_ts_prefix" : "{stream}-{file_start_time_unix}-{file_end_time_unix}-{ts_sequence_number}",
        "record_slice_duration" : 10,
        "record_max_duration_to_merge_file" : 60
      }
    }
  } ]
}

状态码: 400

参数错误

{
  "error_code" : "LIVE.100011001",
  "error_msg" : "Request Illegal"
}
support.huaweicloud.com/api-live/ListRecordRules.html