We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nack模块中的
static constexpr uint32_t kMaxNackMS = 5 * 1000; static constexpr uint32_t kRtpCacheCheckInterval = 100;
这两个配置是否可以设置成可配置?
// RTC配置项目 namespace Rtc { #define RTC_FIELD "rtc." // Nack缓存包最早时间间隔 const string kMaxNackMS = RTC_FIELD "maxNackMS"; // Nack包检查间隔(包数量) const string kRtpCacheCheckInterval = RTC_FIELD "rtpCacheCheckInterval"; static onceToken token([]() { mINI::Instance()[kMaxNackMS] = 5 * 1000; mINI::Instance()[kRtpCacheCheckInterval] = 100; }); } // namespace RTC void NackList::pushBack(RtpPacket::Ptr rtp) { auto seq = rtp->getSeq(); _nack_cache_seq.emplace_back(seq); _nack_cache_pkt.emplace(seq, std::move(rtp)); GET_CONFIG(uint32_t, rtpcache_checkinterval, Rtc::kRtpCacheCheckInterval); if (++_cache_ms_check < rtpcache_checkinterval) { return; } GET_CONFIG(uint32_t, maxnackms, Rtc::kMaxNackMS); _cache_ms_check = 0; while (getCacheMS() >= maxnackms) { // 需要清除部分nack缓存 popFront(); } }
The text was updated successfully, but these errors were encountered:
你可以提交个pr
Sorry, something went wrong.
好的
Nack相关参数可配置化 (#3510 #3507)
5df2b80
No branches or pull requests
Nack模块中的
这两个配置是否可以设置成可配置?
The text was updated successfully, but these errors were encountered: