Commit 9fde0299 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Send recovery if we're very mildly congested.

parent 0e1f3caf
...@@ -808,7 +808,7 @@ func rtcpDownListener(conn *downConnection, track *downTrack, s *webrtc.RTPSende ...@@ -808,7 +808,7 @@ func rtcpDownListener(conn *downConnection, track *downTrack, s *webrtc.RTPSende
mono.Microseconds(), mono.Microseconds(),
) )
bitrate := track.rate.Estimate() bitrate := track.rate.Estimate()
if uint64(bitrate) < maxBitrate { if uint64(bitrate)*7/8 < maxBitrate {
sendRecovery(p, track) sendRecovery(p, track)
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment