还原代码

This commit is contained in:
yj 2024-10-29 13:34:37 +08:00
parent cacfd2c50f
commit abd1da8597
1 changed files with 1 additions and 4 deletions

View File

@ -444,10 +444,7 @@ export const agora = {
},
// 通过设备 ID 指定视频采集设备。
setVideoDeviceManager: async (deviceIdUTF8: string) => {
try {
await rtcEngine.getVideoDeviceManager().setDevice(deviceIdUTF8)
} catch (error) {
}
await rtcEngine.getVideoDeviceManager().setDevice(deviceIdUTF8)
},
// 开启本地视频预览
startPreview: async (id: string, uid: number): Promise<void> => {