title: Autoplaying a <video> element using javascript
body: <p>I have a few  elements set up in my html with the autoplay option included. I have found that Chrome doesn't seem particularly willing to autoplay these videos for whatever reason. I'd like to add a bit of javascript to set the video to play once it's loaded. I understand I need to use the play() method on the DOM element in question. </p>
  
  <p>I'm using:</p>
  
  <pre><code>  document.getElementsByTagName('video').play();
  </code></pre>
  
  <p>This code successfully autoplays my video elements. However, it also throws an error picked up in the console as </p>
  
  <blockquote>
    <p>Uncaught TypeError: Object #&lt; NodeList > has no method 'play'</p>
  </blockquote>
  
  <p>I haven't come across this error before and it's stopping the rest of my javascript for executing properly. Any ideas as to what this is and how to resolve it?</p>
  
  <p>Thanks!</p>