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.
1 parent 0eb206e commit d704717Copy full SHA for d704717
example/lib/src/callscreen.dart
@@ -230,6 +230,7 @@ class _MyCallScreenWidget extends State<CallScreenWidget>
230
'minFrameRate': '30',
231
},
232
'facingMode': 'user',
233
+ 'optional': <dynamic>[],
234
}
235
: false
236
};
@@ -242,6 +243,9 @@ class _MyCallScreenWidget extends State<CallScreenWidget>
242
243
await navigator.mediaDevices.getUserMedia(mediaConstraints);
244
mediaStream.addTrack(userStream.getAudioTracks()[0], addToNative: true);
245
} else {
246
+ if (!remoteHasVideo) {
247
+ mediaConstraints['video'] = false;
248
+ }
249
mediaStream = await navigator.mediaDevices.getUserMedia(mediaConstraints);
250
251
0 commit comments