Browse Source

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

pull/834/head
Gabe Kangas 4 years ago
parent
commit
368dcb8823
  1. 5
      webroot/js/components/player.js

5
webroot/js/components/player.js

@ -212,6 +212,11 @@ class OwncastPlayer { @@ -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(

Loading…
Cancel
Save