Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

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

Gabe Kangas40b11faf95f9
diff --git a/webroot/js/components/player.js b/webroot/js/components/player.js
index f5ea596313..aaa176efd3 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(