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;