From f483d9745479577c9ac4ee8d1b6ad586547c7c7d Mon Sep 17 00:00:00 2001 From: Dima Lunkin Date: Sat, 18 Jun 2016 15:27:20 +0300 Subject: [PATCH 1/2] fixed bug with disabled bigPlayButton auto-quality Fixed bug with disabled bigPlayButton. auto-quality works good. --- lib/videojs-resolution-switcher.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/videojs-resolution-switcher.js b/lib/videojs-resolution-switcher.js index b7dc282..febb544 100644 --- a/lib/videojs-resolution-switcher.js +++ b/lib/videojs-resolution-switcher.js @@ -74,7 +74,7 @@ this.addClass('vjs-selected'); // Hide bigPlayButton - if(!isPaused){ + if(!isPaused && this.player_.options_.bigPlayButton){ this.player_.bigPlayButton.hide(); } if(typeof customSourcePicker !== 'function' && @@ -370,7 +370,7 @@ var _selectPlaylist; if(selectedResolution === 'auto'){ - _selectPlaylist = videojs.HlsHandler.prototype.selectPlaylist; + _selectPlaylist = player.hls.selectPlaylist; return _selectPlaylist; } From 2aae2437700e171b8857e1dafe9f4c9b4ad6d60a Mon Sep 17 00:00:00 2001 From: Dima Lunkin Date: Sat, 18 Jun 2016 16:05:08 +0300 Subject: [PATCH 2/2] last bugfix(my bad) --- lib/videojs-resolution-switcher.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/videojs-resolution-switcher.js b/lib/videojs-resolution-switcher.js index febb544..1cb05cf 100644 --- a/lib/videojs-resolution-switcher.js +++ b/lib/videojs-resolution-switcher.js @@ -370,7 +370,7 @@ var _selectPlaylist; if(selectedResolution === 'auto'){ - _selectPlaylist = player.hls.selectPlaylist; + _selectPlaylist = player.tech_.hls.selectPlaylist; return _selectPlaylist; }