实时音视频 SPARKRTC-启动单流任务:响应示例

时间:2024-10-18 15:28:08

响应示例

状态码: 201

任务创建成功,返回job的概要信息,如包含job_id

{
  "job_id" : 1,
  "app_id" : 1,
  "room_id" : 100,
  "user_id" : "user001",
  "is_record_audio" : true,
  "video_type" : "CAMERASTREAM",
  "select_stream_type" : "FHD",
  "max_idle_time" : 30,
  "record_param" : {
    "record_rule_id" : "5f5e172b9016ed5b0961a43"
  },
  "create_time" : "2006-01-02T15:04:05.075Z",
  "start_time" : "2006-01-02T15:04:05.075Z"
}

状态码: 400

创建单流任务失败,语义有误,当前请求无法被服务器理解,或参数有误

{
  "error_code" : "RTC.00001003",
  "error_msg" : "InvalidParameterValue"
}

状态码: 404

创建单流任务失败,应用不存在

{
  "error_code" : "RTC.00001003",
  "error_msg" : "InvalidParameterValue"
}

状态码: 500

创建单流任务失败,服务器错误

{
  "error_code" : "RTC.00002xxx",
  "error_msg" : "InternalError"
}
support.huaweicloud.com/api-rtc/CreateIndividualStreamJob.html