From ed87098766cfbee05b3125616ffc1027e59f2abe Mon Sep 17 00:00:00 2001 From: Maxim Devaev Date: Sun, 17 Mar 2024 17:24:57 +0200 Subject: [PATCH] disable orientation on firefox (it doesn't support this) --- web/share/js/kvm/stream.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/share/js/kvm/stream.js b/web/share/js/kvm/stream.js index a5a132948..ccf8281c3 100644 --- a/web/share/js/kvm/stream.js +++ b/web/share/js/kvm/stream.js @@ -263,7 +263,9 @@ export function Streamer() { if (mode === "janus") { __streamer = new JanusStreamer(__setActive, __setInactive, __setInfo, tools.storage.getInt("stream.orient", 0), !$("stream-video").muted); - tools.feature.setEnabled($("stream-orient"), true); + // Firefox doesn't support RTP orientation: + // - https://bugzilla.mozilla.org/show_bug.cgi?id=1316448 + tools.feature.setEnabled($("stream-orient"), !tools.browser.is_firefox); } else { // mjpeg __streamer = new MjpegStreamer(__setActive, __setInactive, __setInfo); tools.feature.setEnabled($("stream-orient"), false);