在config.ini文件中添加下nack配置以及相关注释

This commit is contained in:
gongluck 2024-05-12 14:40:25 +08:00
parent cb99a77d06
commit 20926d86a4
2 changed files with 21 additions and 3 deletions

View File

@ -367,6 +367,24 @@ start_bitrate=0
max_bitrate=0
min_bitrate=0
#nack接收端
#Nack缓存包最早时间间隔
maxNackMS=5000
#Nack包检查间隔(包数量)
rtpCacheCheckInterval=100
#nack发送端
#最大保留的rtp丢包状态个数
nackMaxSize=2048
#rtp丢包状态最长保留时间
nackMaxMS=3000
#nack最多请求重传次数
nackMaxCount=15
#nack重传频率rtt的倍数
nackIntervalRatio=1.0
#nack包中rtp个数减小此值可以让nack包响应更灵敏
nackRtpSize=8
[srt]
#srt播放推流、播放超时时间,单位秒
timeoutSec=5

View File

@ -19,17 +19,17 @@ namespace mediakit {
// RTC配置项目
namespace Rtc {
#define RTC_FIELD "rtc."
//~ 发送
//~ nack接收
// Nack缓存包最早时间间隔
const string kMaxNackMS = RTC_FIELD "maxNackMS";
// Nack包检查间隔(包数量)
const string kRtpCacheCheckInterval = RTC_FIELD "rtpCacheCheckInterval";
//~ 接收
//~ nack发送
//最大保留的rtp丢包状态个数
const string kNackMaxSize = RTC_FIELD "nackMaxSize";
// rtp丢包状态最长保留时间
const string kNackMaxMS = RTC_FIELD "nackMaxMS";
// nack最多请求重传10
// nack最多请求重传
const string kNackMaxCount = RTC_FIELD "nackMaxCount";
// nack重传频率rtt的倍数
const string kNackIntervalRatio = RTC_FIELD "nackIntervalRatio";