mirror of
https://github.com/kmoskwiak/videojs-resolution-switcher.git
synced 2025-10-03 17:59:42 +02:00
Merge eb3491125b
into 85f1e51c8b
This commit is contained in:
commit
e7838c87ed
1 changed files with 3 additions and 3 deletions
|
@ -58,11 +58,11 @@
|
||||||
this.controlText('Quality');
|
this.controlText('Quality');
|
||||||
|
|
||||||
if(options.dynamicLabel){
|
if(options.dynamicLabel){
|
||||||
videojs.addClass(this.label, 'vjs-resolution-button-label');
|
videojs.dom().addClass(this.label, 'vjs-resolution-button-label');
|
||||||
this.el().appendChild(this.label);
|
this.el().appendChild(this.label);
|
||||||
}else{
|
}else{
|
||||||
var staticLabel = document.createElement('span');
|
var staticLabel = document.createElement('span');
|
||||||
videojs.addClass(staticLabel, 'vjs-menu-icon');
|
videojs.dom().addClass(staticLabel, 'vjs-menu-icon');
|
||||||
this.el().appendChild(staticLabel);
|
this.el().appendChild(staticLabel);
|
||||||
}
|
}
|
||||||
player.on('updateSources', videojs.bind( this, this.update ) );
|
player.on('updateSources', videojs.bind( this, this.update ) );
|
||||||
|
@ -362,6 +362,6 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
// register the plugin
|
// register the plugin
|
||||||
videojs.plugin('videoJsResolutionSwitcher', videoJsResolutionSwitcher);
|
videojs.registerPlugin('videoJsResolutionSwitcher', videoJsResolutionSwitcher);
|
||||||
})(window, videojs);
|
})(window, videojs);
|
||||||
})();
|
})();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue