title: Best way to implement HTML5 video
body: <p>I understand that HTML5 video is way more complicated than its proponents would like us to believe. Safari uses the proprietary H.264 codec, whereas Firefox, Chrome and Opera all support the open-source Theora. Internet Explorer doesn't support either, so needs a fallback, such as .mov or Flash.</p>
  <p>I found a superb guide somewhere that put together a step-by-step guide for HTML5 on all these browsers, but I can't find it anywhere. Very annoying :(</p>
  <p>What's the best way to implement HTML5 video so that all these browsers are covered? (Unfortunately, Flash is not an option.)</p>
  <hr />
  <p><strong>Edit:</strong> Ok, from what I've read, here is my own answer: This is the best way to implement HTML 5 video...</p>
  <pre><code>    &lt;video id=&quot;video&quot; width=&quot;450&quot; height=&quot;170&quot; preload=&quot;auto&quot; autoplay=&quot;autoplay&quot;&gt;
          &lt;source src=&quot;../static/video/video.mp4&quot; /&gt;
          &lt;source src=&quot;../static/video/video.webm&quot; type='video/webm; codecs=&quot;vp8, vorbis&quot;' /&gt;
          &lt;source src=&quot;../static/video/video.ogv&quot; type='video/ogg; codecs=&quot;theora, vorbis&quot;' /&gt;
          &lt;!-- Fallback (either Flash, an image, or a &quot;Video not supported&quot; message, etc.) --&gt;
      &lt;/video&gt;
  </code></pre>
  <p>It's the only way that's worked as expected on every browser so far. Unfortunately autoplay doesn't seem to be working in Chrome? :(</p>
  <p>Update: Chrome doesn't support Autoplay. Update update: Autoplay works with the &quot;muted&quot; attribute.</p>