调整nack相关参数

This commit is contained in:
xiongziliang 2022-03-13 19:22:19 +08:00
parent 94282d240e
commit 4314006551

View File

@ -40,13 +40,13 @@ public:
using Ptr = std::shared_ptr<NackContext>;
using onNack = std::function<void(const mediakit::FCI_NACK &nack)>;
//最大保留的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;