Do not show output quality selector if there is only one option. closes #832

This commit is contained in:
Gabe Kangas 2021-03-17 21:30:43 -07:00
parent e015ea60c5
commit 368dcb8823

View file

@ -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(