VideoJs warnings

- plugin is now registerPlugin
- videojs.addClass is now videojs.dom.addClass
This commit is contained in:
7Ds7 2020-01-15 19:50:47 +01:00 committed by GitHub
parent 85f1e51c8b
commit dfc6b0e389
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
})(); })();