From 23296ae5fade3a06e98df857d4c7cf83b1443d60 Mon Sep 17 00:00:00 2001 From: ziyue <1213642868@qq.com> Date: Tue, 7 Mar 2023 10:37:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E5=A4=A7=E5=8F=82=E6=95=B0=E5=86=97?= =?UTF-8?q?=E4=BD=99=EF=BC=8C=E6=8F=90=E9=AB=98webrtc=E6=8A=97=E4=B8=A2?= =?UTF-8?q?=E5=8C=85=E8=83=BD=E5=8A=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Rtsp/RtpReceiver.h | 2 +- webrtc/Nack.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Rtsp/RtpReceiver.h b/src/Rtsp/RtpReceiver.h index 7dc40bc9..5a2e4da6 100644 --- a/src/Rtsp/RtpReceiver.h +++ b/src/Rtsp/RtpReceiver.h @@ -143,7 +143,7 @@ private: private: bool _started = false; //排序缓存最大保存数据长度,单位毫秒 - size_t _max_buffer_ms = 1000; + size_t _max_buffer_ms = 3000; //排序缓存最大保存数据个数 size_t _max_buffer_size = 1024; //记录上次output至今的时间 diff --git a/webrtc/Nack.h b/webrtc/Nack.h index f2631035..8780e27a 100644 --- a/webrtc/Nack.h +++ b/webrtc/Nack.h @@ -49,7 +49,7 @@ public: // rtp丢包状态最长保留时间 static constexpr auto kNackMaxMS = 3 * 1000; // nack最多请求重传10次 - static constexpr auto kNackMaxCount = 10; + static constexpr auto kNackMaxCount = 15; // nack重传频率,rtt的倍数 static constexpr auto kNackIntervalRatio = 1.0f; // nack包中rtp个数,减小此值可以让nack包响应更灵敏