Check if selected microphone is muted or not with web audio api
<p>By using the following, we can prompt the user to select their preferred media input device with audio and video source constraints (currently only interested in Chrome support).</p>

<pre><code>navigator.mediaDevices.getUserMedia({audio: true})
  .then((stream) =&gt; {
    console.log(stream);
  });
</code></pre>

<p>Anyone know if there is an exposed API to detect if the user-selected input device is currently muted or not? The input device would be either an onboard microphone, external mic, or software defined microphone that shows in the system as a hardware device.</p>