From 368dcb8823bdb6fd68c4fbab148a409a35ae04dc Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Wed, 17 Mar 2021 21:30:43 -0700 Subject: [PATCH] Do not show output quality selector if there is only one option. closes #832 --- webroot/js/components/player.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/webroot/js/components/player.js b/webroot/js/components/player.js index f5ea59631..aaa176efd 100644 --- a/webroot/js/components/player.js +++ b/webroot/js/components/player.js @@ -212,6 +212,11 @@ class OwncastPlayer { }, }); + // Only show the quality selector if there is more than one option. + if (qualities.length < 2) { + return; + } + var menuButton = new MenuButton(); menuButton.addClass('vjs-quality-selector'); player.controlBar.addChild(