Dampen oscillations in loss based congestion detection when using TWCC. (#3256)
* Rework congestion detection state machine * WIP * fmt * clean up * revert config
This commit is contained in:
@@ -1817,7 +1817,7 @@ func (d *DownTrack) handleRTCP(bytes []byte) {
|
||||
}
|
||||
|
||||
case *rtcp.TransportLayerCC:
|
||||
if p.MediaSSRC == d.ssrc || (d.ssrcRTX != 0 && p.MediaSSRC == d.ssrcRTX) {
|
||||
if p.MediaSSRC == d.ssrc {
|
||||
if sal := d.getStreamAllocatorListener(); sal != nil {
|
||||
sal.OnTransportCCFeedback(d, p)
|
||||
}
|
||||
@@ -1885,6 +1885,13 @@ func (d *DownTrack) handleRTCPRTX(bytes []byte) {
|
||||
|
||||
d.rtpStatsRTX.UpdateFromReceiverReport(r)
|
||||
}
|
||||
|
||||
case *rtcp.TransportLayerCC:
|
||||
if p.MediaSSRC == d.ssrcRTX {
|
||||
if sal := d.getStreamAllocatorListener(); sal != nil {
|
||||
sal.OnTransportCCFeedback(d, p)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user