disable orientation on firefox (it doesn't support this)

This commit is contained in:
Maxim Devaev 2024-03-17 17:24:57 +02:00
parent 154a78a587
commit ed87098766

View File

@ -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);