mirror of
https://github.com/element-hq/element-call.git
synced 2026-10-23 06:32:24 +00:00
comment
This commit is contained in:
1 parent
ab4eadf58f
commit
73ccb38c11
1 file changed
+3
@@ -358,6 +358,9 @@ export class MediaDevices {
|
||||
*/
|
||||
public requestDeviceNames(): void {
|
||||
void navigator.mediaDevices.enumerateDevices().then((result) => {
|
||||
// we only actually update the requests$ subject if there are no
|
||||
// devices with a label, because otherwise we already have the permission
|
||||
// to access the devices.
|
||||
this.requests$.next(!result.some((device) => device.label));
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user