Using the following, we can suggest the user to select the preferred multimedia input device with restrictions on the audio and video source (currently only interested in Chrome support).
navigator.mediaDevices.getUserMedia({audio: true}) .then((stream) => { console.log(stream); });
Does anyone know if there is an open API to detect if the user-selected input device is currently disabled or not? The input device will either be a built-in microphone, or an external microphone, or a software microphone, which is displayed in the system as a hardware device.
source share