Skip to content

Commit

Permalink
fix(TPC): Reset the scalabilityMode for VP8.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jallamsetty1 committed Feb 14, 2024
1 parent f5f8a13 commit d0a9224
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/RTC/TraceablePeerConnection.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}
Expand Down

0 comments on commit d0a9224

Please sign in to comment.