Skip to content

Commit

Permalink
offer the hls reference.
Browse files Browse the repository at this point in the history
offer the `hls` reference though `player.tech_.sourceHandler.hls`, so we can get more attributes and invoke more methods of hls.
For examples,,, `player.tech_.sourceHandler.hls.currentLevel = -1`;
  • Loading branch information
benvirus committed Oct 17, 2017
1 parent a5a1cef commit e723f5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/videojs.hlsjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function Html5HlsJS(source, tech) {
var options = tech.options_;
var el = tech.el();
var duration = null;
var hls = new Hls(options.hlsjsConfig);
var hls = this.hls = new Hls(options.hlsjsConfig);

/**
* creates an error handler function
Expand Down

0 comments on commit e723f5c

Please sign in to comment.