flv
mp4
在开始录制前,必须调用 mix 方法请求一个用于云端录制的 task ID
https://brtc-api.baijiayun.com/vcs/recording/stream/mix
{ "app_id": "BZ2no1v919Die6mLc2nNOGvfqcQNSfKO", "room_id": "33669", "input_params":{ "main_user_id": "20", "mix_config":{ "mix_mode":1, "input_list":[ { "user_id": "122333", "stream_type": 1, "x": 2, "y": 2, "width": 360, "height": 240, "z_order": 1 }, { "user_id": "12333", "stream_type": 1, "x": 200, "y": 40, "width": 360, "height": 240, "z_order": 1 } ], "video":{ "width": "1280x720", "bit_rate":1024, "background_color": "#ffffff", "fps":15 } } } }
https://brtc-api.baijiayun.com/vcs/recording/stream/mix/start
{ "app_id": "BZ2no1v919Die6mLc2nNOGvfqcQNSfKO", "room_id": "33669", "task_id": "123456789", "publish_cdn": { "url": "string" } }
https://brtc-api.baijiayun.com/vcs/recording/stream/mix/stop
{ "app_id": "BZ2no1v919Die6mLc2nNOGvfqcQNSfKO", "room_id": "33669", "task_id": "123456789", "type":1 }
混流录制
flv
或者mp4
录制文件实现方式
获取录制资源
在开始录制前,必须调用 mix 方法请求一个用于云端录制的 task ID
请求示例
开始录制
请求示例
停止录制
请求示例