{"app_id":"BZ2no1v919Die6mLc2nNOGvfqcQNSfKO","room_id":"33669","input_params":{"main_user_id":"20","fill_frame":{"fill_mode":1},"watermarks":[{"type":"text","text":"abc123","offset_x":100,"offset_y":100,"font_size":70,"font_color":"#FFFFFF"},{"type":"text","text":"this is name","offset_x":100,"offset_y":100,"font_size":70,"font_color":"#FFFFFF"},{"type":"time","offset_x":100,"offset_y":100,"font_size":70,"font_color":"#FFFFFF"},{"type":"image","offset_x":100,"offset_y":100,"url":"https://xxx.png"}],"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}],"audio_only":["1111","222","555"],"video":{"size":"1280x720","bit_rate":1024,"background_color":"#ffffff","fps":15}}}}
混流录制
描述
mix
方法请求一个用于云端录制的 taskId接口请求地址
API鉴权
参见 Restful API 基本认证
请求参数
input_params 成员
fill_frame 成员
0: 补黑边(默认)
1: 裁剪
2: 拉伸填充
watermarks 成员
time: 时间水印(默认)
text: 文字水印
image:图片水印
mix_config 成员
1: 自定义布局
2: 画廊布局(默认)
3:演讲布局
4:悬浮布局
input_list 成员
0: 大流
1: 小流
2: 辅流(屏幕分享)
若对方未开启大小流,默认为大流
如果画面有重叠通过 z_order 可设置画面堆叠的顺序
拥有更大堆叠顺序的画面会覆盖堆叠顺序较小的画面
video 成员
输出视频的分辨率size可选值
请求示例
响应参数
响应示例