I write this code in JavaScript in Chrome:
navigator.mediaDevices.enumerateDevices()
.then((list) => {
console.log(list);
});
This outputs a list of media devices like microphones and cameras. Each device is represented as an object with its own deviceId. But some devices, like one of the microphones in particular, are listed twice. And one time their respective deviceId is set to 'default'. What is so special about a one default microphone? And how do I tell which actual deviceId it has?