From 4eac654d13fe7c1295171f37b7235a4634432a8d Mon Sep 17 00:00:00 2001 From: Steve Seguin Date: Tue, 8 Feb 2022 00:27:56 -0500 Subject: [PATCH] bitcut fix --- index.html | 1 + lib.js | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index b21d3ef..c5964fb 100644 --- a/index.html +++ b/index.html @@ -1995,6 +1995,7 @@ // session.scene // the scene name. Scene 0, 1, ... 8, or any custom scene name is supported. STRING value. Needed to have a clean view link of a guest stream // session.title // "zzzz" ; sets the title of the browser page. // session.introOnClean = true; // this will load the page with the webcam selection screen if &push or &room is in the URL; no need to use &webcam. + // session.lowBitrateCutoff = 300; // Set a minimum bitrate (in kbps) before the stream is hidden. Useful for IRL streams maybe diff --git a/lib.js b/lib.js index 19580cd..5a710d0 100644 --- a/lib.js +++ b/lib.js @@ -1636,6 +1636,9 @@ function hideStreamLowBandwidth(bandwidth, UUID){ } } else if (session.rpcs[UUID].bandwidthMuted){ session.rpcs[UUID].bandwidthMuted = false; + if (session.rpcs[UUID].videoElement){ + session.rpcs[UUID].videoElement.muted = checkMuteState(UUID); + } updateMixer(); } } @@ -8189,7 +8192,7 @@ function applyMuteState(UUID){ // this is the mute state of PLAYBACK audio; not function checkMuteState(UUID){ // this is the mute state of PLAYBACK audio; not the microphone or outbound. if (!(UUID in session.rpcs)){return false;} - var muteOutcome = session.rpcs[UUID].mutedState || session.rpcs[UUID].mutedStateMixer || session.rpcs[UUID].mutedStateScene || session.speakerMuted; + var muteOutcome = session.rpcs[UUID].mutedState || session.rpcs[UUID].mutedStateMixer || session.rpcs[UUID].mutedStateScene || session.speakerMuted || session.rpcs[UUID].bandwidthMuted; return muteOutcome; }