From 9fde0299128defaca644aefe76ef2427c9838aa6 Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Thu, 21 May 2020 13:20:51 +0200 Subject: [PATCH] Send recovery if we're very mildly congested. --- client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.go b/client.go index dcb4a9f..faff8c3 100644 --- a/client.go +++ b/client.go @@ -808,7 +808,7 @@ func rtcpDownListener(conn *downConnection, track *downTrack, s *webrtc.RTPSende mono.Microseconds(), ) bitrate := track.rate.Estimate() - if uint64(bitrate) < maxBitrate { + if uint64(bitrate)*7/8 < maxBitrate { sendRecovery(p, track) } }