Skip to content

Commit

Permalink
Merge pull request #4699 from immers-space/fix-missing-mic
Browse files Browse the repository at this point in the history
Fix cannot activate mic if last used mic no longer available
  • Loading branch information
keianhzo authored Oct 7, 2021
2 parents df165a9 + 3cdbcae commit b07c5ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/media-devices-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b07c5ce

Please sign in to comment.