From b4a9aa73d01ab4bb31b5650d3c5c33c8aa96e8ed Mon Sep 17 00:00:00 2001 From: Ethan Smith Date: Thu, 3 Aug 2017 15:21:24 -0400 Subject: [PATCH] Highlight correct resolution in the UI when the source is changed programmatically --- src/js/middleware/SourceInterceptor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/middleware/SourceInterceptor.js b/src/js/middleware/SourceInterceptor.js index c3bd072..67e8495 100644 --- a/src/js/middleware/SourceInterceptor.js +++ b/src/js/middleware/SourceInterceptor.js @@ -58,7 +58,7 @@ module.exports = function(videojs) { // Update the quality selector with the new source qualitySelector = player.controlBar.getChild('qualitySelector'); if (qualitySelector) { - qualitySelector.update(); + qualitySelector.setSelectedSource(selectedSource); } // Pass along selected source