From c15eeeff2bbf49e2e0d49fe4e35edc724635123f Mon Sep 17 00:00:00 2001 From: Raja Subramanian Date: Thu, 30 Jun 2022 09:10:18 +0530 Subject: [PATCH] Run connection quality worker every 5 seconds. (#795) With a small window, the quality is volatile even on small disturbances. For example losing 2 audio packets in a 2 second window could drop the quality metric. --- pkg/sfu/connectionquality/connectionstats.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/sfu/connectionquality/connectionstats.go b/pkg/sfu/connectionquality/connectionstats.go index 8ba958a7d..b7a9cace6 100644 --- a/pkg/sfu/connectionquality/connectionstats.go +++ b/pkg/sfu/connectionquality/connectionstats.go @@ -14,7 +14,7 @@ import ( ) const ( - UpdateInterval = 2 * time.Second + UpdateInterval = 5 * time.Second audioPacketRateThreshold = float64(25.0) )