videojs-hlsjs-source-handler
Hls.js from Dailymotion Source Handler for Video.js
Installation
NPM Package: https://www.npmjs.com/package/videojs-hlsjs-source-handler
npm install videojs-hlsjs-source-handler --save
Dependencies
This source handler assumes you have the following dependencies already loaded:
Api
The source handler will expose two properties on the video.js tech:
- hls - A reference to the current hls.js instance.
- isHlsJs - This property will be defined and have the boolean value
true
when the source handler/hls.js is being used.
Usage
;
Options
- shouldHandle - Disable this source handler by setting this value to
false
. Default:true
.
For a full list of possible hls.js options, see the hls.js documentation.
Full Example
videojs-hlsjs-source-handler
Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality.
Release History
- 2018-10-18 v1.4.0 Improved network error recovery when failing to load the manifest.
- 2017-12-05 v1.3.0 Fixed bug where Hls.js might not start loading if autoStartLoad is false and _loadStarter is triggered before the lop level manifest is loaded.
- 2017-11-22 v1.2.0 Added support for Video.Js 6 (Video.Js 5 still supported). && Fixed bug where Hls.js might not start loading if autoStartLoad is false and preroll ad timed out.
- 2017-02-27 v1.1.0 Fixed publish configuration.
- 2017-02-27 v1.0.8 Call startLoad() if autoStartLoad is false.
- 2016-10-24 v1.0.7 Added option to disable source handler.
- 2016-10-19 v1.0.6 Added license.
- 2016-10-19 v1.0.5 README formatting.
- 2016-10-19 v1.0.4 Updated README with npm installation and examples.
- 2016-10-17 v1.0.3 Better network error handling.
- 2016-10-14 v1.0.2 Correct seekable start point for DVR controls.
- 2016-10-14 v1.0.1 Bugfix in recovery mechanism.
- 2016-10-13 v1.0.0 Initial version.