Do not show output quality selector if there is only one option. closes #832
This commit is contained in:
@@ -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();
|
var menuButton = new MenuButton();
|
||||||
menuButton.addClass('vjs-quality-selector');
|
menuButton.addClass('vjs-quality-selector');
|
||||||
player.controlBar.addChild(
|
player.controlBar.addChild(
|
||||||
|
|||||||
Reference in New Issue
Block a user