mirror of
https://github.com/livekit/livekit.git
synced 2026-05-14 18:25:24 +00:00
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user