|
|
@@ -2129,7 +2129,12 @@ TraceablePeerConnection.prototype._setMaxBitrates = function(description, isLoca
|
|
2129
|
2129
|
const localTrack = this.getLocalVideoTracks()
|
|
2130
|
2130
|
.find(track => this._localTrackTransceiverMids.get(track.rtcId) === mLine.mid.toString());
|
|
2131
|
2131
|
|
|
2132
|
|
- if ((isDoingVp9KSvc || this.tpcUtils._isRunningInFullSvcMode(currentCodec)) && localTrack) {
|
|
|
2132
|
+ if (localTrack
|
|
|
2133
|
+ && (isDoingVp9KSvc
|
|
|
2134
|
+
|
|
|
2135
|
+ // Setting bitrates in the SDP for SVC codecs is no longer needed in the newer versions where
|
|
|
2136
|
+ // maxBitrates from the RTCRtpEncodingParameters directly affect the target bitrate for the encoder.
|
|
|
2137
|
+ || (this.tpcUtils._isRunningInFullSvcMode(currentCodec) && !this.usesCodecSelectionAPI()))) {
|
|
2133
|
2138
|
let maxBitrate;
|
|
2134
|
2139
|
|
|
2135
|
2140
|
if (localTrack.getVideoType() === VideoType.DESKTOP) {
|