From 3cdbcaeb87cd230ec7eed19590ec20e98b5208ec Mon Sep 17 00:00:00 2001 From: Will Murphy Date: Sat, 25 Sep 2021 23:07:23 -0500 Subject: [PATCH] do not fail to get media if last device no longer available --- src/utils/media-devices-manager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/media-devices-manager.js b/src/utils/media-devices-manager.js index dcc1310d61..e5234096d4 100644 --- a/src/utils/media-devices-manager.js +++ b/src/utils/media-devices-manager.js @@ -112,7 +112,7 @@ export default class MediaDevicesManager { console.log("Starting microphone sharing"); let constraints = { audio: {} }; if (deviceId) { - constraints = { audio: { deviceId: { exact: [deviceId] } } }; + constraints = { audio: { deviceId: { ideal: [deviceId] } } }; } const result = await this._startMicShare(constraints);