This commit is contained in:
parent
8e0bfa8ce8
commit
4d074cf28b
|
|
@ -155,7 +155,7 @@ const VideoComponents = () => {
|
|||
const getVideoDeviceList = async (): Promise<void> => {
|
||||
const userInfo = JSON.parse(storage.getItem('user') as string)
|
||||
agora.getVideoDeviceManager().then(async (res) => {
|
||||
const { item, list } = res
|
||||
const { list } = res
|
||||
setVideoDeviceManager({
|
||||
list: list.map((row: any) => {
|
||||
return {
|
||||
|
|
@ -163,7 +163,7 @@ const VideoComponents = () => {
|
|||
label: row.deviceName
|
||||
}
|
||||
}),
|
||||
item: setting.videoDeviceId ? setting.videoDeviceId : item || null,
|
||||
item: setting.videoDeviceId,
|
||||
})
|
||||
if (setting.videoDeviceId && list.length) {
|
||||
await agora.setVideoDeviceManager(setting.videoDeviceId)
|
||||
|
|
|
|||
Loading…
Reference in New Issue