We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bb6416b + c0a3820 commit b270bfbCopy full SHA for b270bfb
lib/src/mediadevices_impl.dart
@@ -20,14 +20,13 @@ class MediaDevicesWeb extends MediaDevices {
20
mediaConstraints['video'].remove('facingMode');
21
}
22
23
+ mediaConstraints.putIfAbsent('video', () => false);
24
+ mediaConstraints.putIfAbsent('audio', () => false);
25
} catch (e) {
26
print(
27
'[getUserMedia] failed to remove facingMode from mediaConstraints');
28
29
- mediaConstraints.putIfAbsent('video', () => false);
- mediaConstraints.putIfAbsent('audio', () => false);
30
-
31
final mediaDevices = web.window.navigator.mediaDevices;
32
33
if (jsutil.hasProperty(mediaDevices, 'getUserMedia')) {
0 commit comments