mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 10:40:05 +08:00
调整nack相关参数
This commit is contained in:
parent
94282d240e
commit
4314006551
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user