diff --git a/lib/videojs-resolution-switcher.js b/lib/videojs-resolution-switcher.js index 5b1448e..df42c71 100644 --- a/lib/videojs-resolution-switcher.js +++ b/lib/videojs-resolution-switcher.js @@ -73,10 +73,11 @@ // add .current class this.addClass('vjs-selected'); - // Hide bigPlayButton - if(!isPaused){ + // Hide bigPlayButton + if(!isPaused && this.player_.options_.bigPlayButton){ this.player_.bigPlayButton.hide(); } + if(typeof customSourcePicker !== 'function' && typeof this.options_.customSourcePicker === 'function'){ customSourcePicker = this.options_.customSourcePicker;