Skip to content

Commit

Permalink
disable orientation on firefox (it doesn't support this)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdevaev committed Mar 17, 2024
1 parent 154a78a commit ed87098
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion web/share/js/kvm/stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ed87098

Please sign in to comment.