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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
configureTransceiverCodecs(transceiver, enabledCodecs, rtcpFeedbackConfig, !t.params.IsOfferer)
|
||||||
if trackLocal.Kind() == webrtc.RTPCodecTypeAudio {
|
if trackLocal.Kind() == webrtc.RTPCodecTypeAudio {
|
||||||
configureAudioTransceiver(transceiver, params.Stereo, !params.Red || !t.params.ClientInfo.SupportsAudioRED())
|
configureAudioTransceiver(transceiver, params.Stereo, !params.Red || !t.params.ClientInfo.SupportsAudioRED())
|
||||||
}
|
}
|
||||||
configureTransceiverCodecs(transceiver, enabledCodecs, rtcpFeedbackConfig, !t.params.IsOfferer)
|
|
||||||
t.adjustNumOutstandingMedia(transceiver)
|
t.adjustNumOutstandingMedia(transceiver)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@@ -980,10 +980,10 @@ func (t *PCTransport) AddTransceiverFromTrack(
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
configureTransceiverCodecs(transceiver, enabledCodecs, rtcpFeedbackConfig, !t.params.IsOfferer)
|
||||||
if trackLocal.Kind() == webrtc.RTPCodecTypeAudio {
|
if trackLocal.Kind() == webrtc.RTPCodecTypeAudio {
|
||||||
configureAudioTransceiver(transceiver, params.Stereo, !params.Red || !t.params.ClientInfo.SupportsAudioRED())
|
configureAudioTransceiver(transceiver, params.Stereo, !params.Red || !t.params.ClientInfo.SupportsAudioRED())
|
||||||
}
|
}
|
||||||
configureTransceiverCodecs(transceiver, enabledCodecs, rtcpFeedbackConfig, !t.params.IsOfferer)
|
|
||||||
t.adjustNumOutstandingMedia(transceiver)
|
t.adjustNumOutstandingMedia(transceiver)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user