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

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

响应示例

状态码: 200

查询录制配置成功

{
  "id" : "0f78cc406baad9ca3e1fd76656dea1ab",
  "publish_domain" : "publish.xxx.com",
  "app" : "live",
  "stream" : "*",
  "record_type" : "CONTINUOUS_RECORD",
  "default_record_config" : {
    "record_format" : [ "MP4", "FLV" ],
    "obs_addr" : {
      "bucket" : "mybucket",
      "location" : "region1",
      "object" : "record/"
    },
    "hls_config" : {
      "record_cycle" : 0,
      "record_prefix" : "",
      "record_ts_prefix" : "",
      "record_slice_duration" : 0,
      "record_max_duration_to_merge_file" : 0
    },
    "flv_config" : {
      "record_cycle" : 3600,
      "record_prefix" : "Record/publish_domain/app/record_type/record_format/stream_file_start_time/file_start_time",
      "record_max_duration_to_merge_file" : 0
    },
    "mp4_config" : {
      "record_cycle" : 900,
      "record_prefix" : "Record/publish_domain/app/record_type/record_format/stream_file_start_time/file_start_time",
      "record_max_duration_to_merge_file" : 0
    }
  },
  "create_time" : "2020-05-20T02:13:49.062Z",
  "update_time" : "0001-01-01T00:00:00Z"
}

状态码: 400

查询录制配置失败

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