From c0da658b9fc3426d67ff7946110cf87127a323cc Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Fri, 14 May 2021 23:20:19 +0200 Subject: [PATCH] Send sender report more often. Now that we start at 200kbps, we need to increase our rate faster. --- rtpconn/rtpconn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtpconn/rtpconn.go b/rtpconn/rtpconn.go index dab43fc..23498ea 100644 --- a/rtpconn/rtpconn.go +++ b/rtpconn/rtpconn.go @@ -1022,7 +1022,7 @@ func sendSR(conn *rtpDownConnection) error { func rtcpDownSender(conn *rtpDownConnection) { for { - time.Sleep(time.Second) + time.Sleep(time.Second / 2) err := sendSR(conn) if err != nil { if err == io.EOF || err == io.ErrClosedPipe {