From 431400655111cc1b18abd6190fab8aea2ab2cb05 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Sun, 13 Mar 2022 19:22:19 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4nack=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webrtc/Nack.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webrtc/Nack.h b/webrtc/Nack.h index 4757a2a2..761c618d 100644 --- a/webrtc/Nack.h +++ b/webrtc/Nack.h @@ -40,13 +40,13 @@ public: using Ptr = std::shared_ptr; using onNack = std::function; //最大保留的rtp丢包状态个数 - static constexpr auto kNackMaxSize = 1024; + static constexpr auto kNackMaxSize = 2048; //rtp丢包状态最长保留时间 static constexpr auto kNackMaxMS = 3 * 1000; //nack最多请求重传10次 static constexpr auto kNackMaxCount = 10; //nack重传频率,rtt的倍数 - static constexpr auto kNackIntervalRatio = 2.0f; + static constexpr auto kNackIntervalRatio = 1.0f; NackContext() = default; ~NackContext() = default;