Playing m3u8 Files with HTML Video Tag

Might be a little late with the answer but you need to supply the MIME type attribute in the video tag: type=”application/x-mpegURL”. The video tag I use for a 16:9 stream looks like this.

<video width="352" height="198" controls>
    <source src="https://stackoverflow.com/questions/19782389/playlist.m3u8" type="application/x-mpegURL">
</video>

Leave a Comment