Adds HLS playback support to [video.js 5.0+](https://github.com/videojs/video.js) using [Dailymotion's hls.js library](https://github.com/dailymotion/hls.js).


stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
10Feb 22, 2018Nov 21, 2016Minified + gzip package size for @hola.org/videojs5-hlsjs-source-handler in KB


video.js HLS Source Handler

Adds HLS playback support to video.js 5.0+ using Dailymotion's hls.js library.


Clone the repository. Install the dependcies npm install. Use grunt buildto build the dist scripts.


Include video.js and videojs5-hlsjs-source-handler in your page:

    <link href="http://vjs.zencdn.net/5.0/video-js.min.css" rel="stylesheet">
    <script src="http://vjs.zencdn.net/5.0/video.min.js"></script>
    <script src="videojs5-hlsjs-source-handler"></script>

    <video id=example-video width=600 height=300 class="video-js vjs-default-skin" controls>
        <source src="http://sample.vodobox.net/skate_phantom_flex_4k/skate_phantom_flex_4k.m3u8" type="application/x-mpegURL">
        var player = videojs('example-video');

There are several ways of getting video.js files, you can read about them in official documentation and choose the one that match your needs best.

Passing configuration options to hls.js

Define hlsjsConfig property in html5 field of video.js options object and pass it as second param to videojs constructor. List of available hls.js options is here:

    var options = {
        html5: {
            hlsjsConfig: {
                debug: true
    var player = videojs('example-video', options);

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.