Skip to content

Commit 580669c

Browse files
committed
Remove default devices
1 parent 1e98042 commit 580669c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/av/interface.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,9 @@ export class AVInterface {
876876
console.log('getAVDevices, getUserMedia...', error)
877877
}
878878
}
879-
this.devices = await navigator.mediaDevices.enumerateDevices()
879+
this.devices = (await navigator.mediaDevices.enumerateDevices()).filter(
880+
(el) => el.deviceId !== 'default' && el.deviceId !== 'communications'
881+
)
880882
return this.devices
881883
}
882884

0 commit comments

Comments
 (0)