From d0a922476e417d37e41f535c456ac983e8909e80 Mon Sep 17 00:00:00 2001 From: Jaya Allamsetty Date: Wed, 14 Feb 2024 17:02:39 -0500 Subject: [PATCH] fix(TPC): Reset the scalabilityMode for VP8. Set the scalabilityMode to undefined for VP8 after a VP9->VP8 switch even though the browser returns L1T2 in the RTCRtpSender.getParameters() call. Fixes an issue where the bridge stops forwarding video for some participants after vp8->vp9 switch. --- modules/RTC/TraceablePeerConnection.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/RTC/TraceablePeerConnection.js b/modules/RTC/TraceablePeerConnection.js index 4cf674e1c8..d331e3aecb 100644 --- a/modules/RTC/TraceablePeerConnection.js +++ b/modules/RTC/TraceablePeerConnection.js @@ -2324,6 +2324,8 @@ TraceablePeerConnection.prototype._updateVideoSenderEncodings = function(frameHe // Configure scalability mode when its supported and enabled. if (scalabilityModes) { parameters.encodings[encoding].scalabilityMode = scalabilityModes[encoding]; + } else { + parameters.encodings[encoding].scalabilityMode = undefined; } } }