获取指定输入源的布局参数,如果不传 streamId 则返回所有布局
const layoutConfig = videoEffectManager.getLayout('stream-a');
Optional
streamId: string设备id
获取最终采用的混流参数
混流参数
const mixingConfig = videoEffectManager.getMixingConfig();
设置指定流布局参数
// 单个设置
videoEffectManager.setLayout({
streamId: 'stream-a',
x: 100,
y: 100,
width: 500,
height: 500
});
// 批量设置
videoEffectManager.setLayout([
{
streamId: 'stream-a',
x: 250,
y: 250,
width: 500,
height: 500,
zOrder: 0
},
{
streamId: 'stream-b',
x: 750,
y: 750,
width: 500,
height: 500,
zOrder: 1
}
])
参数详见ILayoutConfig
设置视频流的镜像效果
镜像配置,详见 IMirrorConfig
设置混流参数
videoEffectManager.setMixingConfig({
videoWidth: 1280,
videoHeight: 720
})
配置参数 详见IMixingConfig
开启本地视频画面混流功能
Example