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

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

请求示例

创建一个单流录制任务。房间号:100,录制用户:user001,开启音频录制,视频流类型:摄像头视频流,窗口拉取的分辨率:FHD,最长空闲频道时间:30秒,录制规则id指定为:5f5e172b9016ed5b0961a43

POST https://rtc-api.myhuaweicloud.com/v2/apps/{app_id}/individual-stream-jobs

{
  "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"
  }
}
support.huaweicloud.com/api-rtc/CreateIndividualStreamJob.html