Do not advertise NACK for RED. (#3889)

Set the transceiver codecs first in single peer connection mode and
then do audio specific config so that NACK is removed for RED.
This commit is contained in:
Raja Subramanian
2025-08-30 17:34:44 +05:30
committed by GitHub
parent 6633bf9372
commit 21b42fa6d9
+2 -2
View File
@@ -955,10 +955,10 @@ func (t *PCTransport) AddTrack(
return
}
configureTransceiverCodecs(transceiver, enabledCodecs, rtcpFeedbackConfig, !t.params.IsOfferer)
if trackLocal.Kind() == webrtc.RTPCodecTypeAudio {
configureAudioTransceiver(transceiver, params.Stereo, !params.Red || !t.params.ClientInfo.SupportsAudioRED())
}
configureTransceiverCodecs(transceiver, enabledCodecs, rtcpFeedbackConfig, !t.params.IsOfferer)
t.adjustNumOutstandingMedia(transceiver)
return
}
@@ -980,10 +980,10 @@ func (t *PCTransport) AddTransceiverFromTrack(
return
}
configureTransceiverCodecs(transceiver, enabledCodecs, rtcpFeedbackConfig, !t.params.IsOfferer)
if trackLocal.Kind() == webrtc.RTPCodecTypeAudio {
configureAudioTransceiver(transceiver, params.Stereo, !params.Red || !t.params.ClientInfo.SupportsAudioRED())
}
configureTransceiverCodecs(transceiver, enabledCodecs, rtcpFeedbackConfig, !t.params.IsOfferer)
t.adjustNumOutstandingMedia(transceiver)
return
}