title: How I can know if I have headphones connected to my computer? HTML5 + JavaScript
body: <p>How I can know if I have headphones connected to my computer? My goal is to get it using HTML5 + JavaScript.</p>
  
  <p>On the next page shows all audio output devices, but there is no way of knowing if the active device is a headphonet or not. And in Firefox it doesn't work!</p>
  
  <p><a href="https://webrtc.github.io/samples/src/content/devices/input-output/" rel="nofollow">https://webrtc.github.io/samples/src/content/devices/input-output/</a></p>
  
  <p>All I want to know is if I have headphones connected with HTML5 and JavaScript.</p>