HTTP Live Streaming (HLS) Demo

11 June, 2022


HLS Using the HTML5 <Video> Tag

The following demo uses the HTML5 <video> tag. Video source1 is the famous Coke ad encoded as HLS. Source2 is the same ad in MP4 format.

Try loading this page in different browsers and devices. Mobile devices and some desktop browsers (eg Safari) play the HLS version while other desktop browsers play MP4.

We have another demo that uses the open source Videojs player. This consistantly plays the HLS version on almost all browsers and devices.

This article explains how using HLS for videos can save money and provide a better user experience.

source1 = HLS AVC, source2 = MP4

  <video width="320" height="180" controls poster="">
    <source src="" type="application/x-mpegURL">
    <source src="" type="video/mp4">
    Your browser is not HTML5 capable

About The Author

Akeel Din

Technology expert from Austin, TX. Writes about cloud computing, video processing and technology. Follow him on social media.