title: Detect browser support for HTML Media Capture
body: <p><br>
  How can I detect browser support for HTML Media Capture* ?</p>
  
  <p><br>
  The traditional way of testing if an attribute is supported doesn't seem to work on some devices (tested on iPad and Google Nexus):</p>
  
  <pre><code>  var elm = document.createElement(input);
    if (capture in elm) {
      return true;
    } 
  </code></pre>
  
  <p><br>
  There's a test for Modernizr but it doesn't seem to be reliable (it uses the same principle):
  <a href="https://github.com/Modernizr/Modernizr/pull/909">https://github.com/Modernizr/Modernizr/pull/909</a></p>
  
  <p>__</p>
  
  <p>(*) More info on HTML Media Capture:</p>
  
  <p><a href="http://www.w3.org/TR/html-media-capture/">http://www.w3.org/TR/html-media-capture/</a> <br>
  <a href="http://www.html5rocks.com/en/tutorials/getusermedia/intro/#toc-round1">http://www.html5rocks.com/en/tutorials/getusermedia/intro/#toc-round1</a></p>