mirror of
https://github.com/owncast/owncast.git
synced 2024-10-24 21:45:59 +03:00
Do not show output quality selector if there is only one option. closes #832
This commit is contained in:
parent
e015ea60c5
commit
368dcb8823
1 changed files with 5 additions and 0 deletions
|
@ -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…
Reference in a new issue