title: Can a HTML5 video tag play m3u files?
body: <p>I'm implementing a video player using the HTML5 video tag. The video asset I'm receiving is hosted and delivered by <a href="https://www.brightcove.com/en/" rel="nofollow">Brightcove</a> and it's a <strong>m3u</strong> file. Is it possible to play this video via the HTML5 video tag?</p>
  
  <p>I think the resulting m3u files from the Brighcove server are set up to support adaptive bit rate streaming. I have tried using the m3u file of both the master (which contains details of each rendition) and each individual rendition file.</p>
  
  <p>But nothing happens on my video tag. There aren't any errors in the console, although I kind of thought there would be. I'm using Chrome, and I've read elsewhere that it supports m3u playback?</p>
  
  <p><strong>In your answer please note that I'm completely new to HTML5 playback - and especially m3u files.</strong></p>
  
  <p>Here is my example code:</p>
  
  <pre><code>&lt;video controls autoplay="true"&gt;
     &lt;source src="http://brightcove.com/example/master.m3u?videoid=1234"&gt;
  &lt;/video&gt;
  </code></pre>
  
  <p>The contents of the resulting m3u files look like this (sensitive data removed):</p>
  
  <pre><code>#EXTM3U
  #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=716000,RESOLUTION=336x184
  https://brightcove.com/services/rendition.m3u8?assetId=123456
  #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1325000,RESOLUTION=504x276
  https://brightcove.com/services/rendition.m3u8?assetId=123456
  #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1797000,RESOLUTION=720x394
  https://brightcove.com/services/rendition.m3u8?assetId=123456
  </code></pre>
  
  <p>Then the contents of each rendition look something like this:</p>
  
  <pre><code>#EXTM3U
  #EXT-X-TARGETDURATION:10
  #EXT-X-MEDIA-SEQUENCE:0
  #EXT-X-KEY:METHOD=AES-128,URI="https://brightcove.com/services/keyfile?assetId=123456
  #EXTINF:11,
  
  #EXT-X-KEY:METHOD=AES-128,URI="https://brightcove.com/services/keyfile?assetId=123456
  #EXTINF:11,
  
  #EXT-X-KEY:METHOD=AES-128,URI="https://brightcove.com/services/keyfile?assetId=123456
  #EXTINF:11,
  
  etc...
  </code></pre>