set in enable AV device constraint to ideal instead of exact

This commit is contained in:
Mészáros Mihály
2020-04-13 22:47:09 +02:00
parent 113fb208ca
commit f37bde2429
+2 -2
View File
@@ -2467,7 +2467,7 @@ export default class RoomClient
const stream = await navigator.mediaDevices.getUserMedia( const stream = await navigator.mediaDevices.getUserMedia(
{ {
audio : { audio : {
deviceId : { exact: deviceId } deviceId : { ideal: deviceId }
} }
} }
); );
@@ -2814,7 +2814,7 @@ export default class RoomClient
{ {
video : video :
{ {
deviceId : { exact: deviceId }, deviceId : { ideal: deviceId },
...VIDEO_CONSTRAINS[resolution] ...VIDEO_CONSTRAINS[resolution]
} }
}); });