Skip to content
Snippets Groups Projects
Commit f3beaa85 authored by Greg Fodor's avatar Greg Fodor
Browse files

Switch to ideal for constraints for last used mic, so user can override

parent dbd34121
No related branches found
No related tags found
No related merge requests found
......@@ -292,7 +292,7 @@ class UIRoot extends Component {
// Try to fetch last used mic, and if we don't get it then fall back to default.
if (lastUsedMicDeviceId) {
hasAudio = await this.fetchAudioTrack({ audio: { deviceId: { exact: lastUsedMicDeviceId } } });
hasAudio = await this.fetchAudioTrack({ audio: { deviceId: { ideal: lastUsedMicDeviceId } } });
}
if (!hasAudio) {
......@@ -417,7 +417,6 @@ class UIRoot extends Component {
fetchMicDevices = () => {
return new Promise(resolve => {
navigator.mediaDevices.enumerateDevices().then(mediaDevices => {
console.log(resolve);
this.setState(
{
micDevices: mediaDevices
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment