Notice: this project will be deprecated and is succeeded by videojs-http-streaming (VHS). VHS supports HLS and DASH and is built into Video.js 7, see the Video.js 7 blog post for details
videojs-contrib-hls lets you use a single format and deliver adaptive streaming video to all major desktop and mobile browsers.
Download videojs-contrib-hls and include it in your page alongside video.js:
<video id=example-video width=960 height=540 class="video-js vjs-default-skin" controls> <source src="https://example.com/index.m3u8" type="application/x-mpegURL"> </video> <script src="video.js"></script> <script src="videojs.hls.min.js"></script> <script> var player = videojs('example-video'); player.play(); </script>
Or just check out the source of this page!