yj #27

Merged
yangqiang merged 5 commits from yj into master 2024-10-29 13:49:57 +08:00
1 changed files with 6 additions and 6 deletions
Showing only changes of commit dbaa2ed7ab - Show all commits

View File

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