From 3cea1487b86ac525901cf3ef1e4e246c22494cb5 Mon Sep 17 00:00:00 2001 From: Dmitriy Lunkin Date: Sat, 18 Jun 2016 13:32:00 +0300 Subject: [PATCH] fix bug with disabled bigPlayButton --- lib/videojs-resolution-switcher.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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;