From 2628690673e169172c71e89a084db3deacb5154c Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Sun, 5 Nov 2023 13:26:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BD=E6=A0=87udp=E5=A4=9A=E7=AB=AF?= =?UTF-8?q?=E5=8F=A3=E6=A8=A1=E5=BC=8F=E6=94=AF=E6=8C=81=E6=94=B6=E5=88=B0?= =?UTF-8?q?sr=20rtcp=E5=90=8E=E5=9B=9E=E5=A4=8Drr=20rtcp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 确保国标停止rtp推流后也可以仅靠rtcp保活 --- src/Rtp/RtpServer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Rtp/RtpServer.cpp b/src/Rtp/RtpServer.cpp index 1c6a8c1b..34871562 100644 --- a/src/Rtp/RtpServer.cpp +++ b/src/Rtp/RtpServer.cpp @@ -89,6 +89,8 @@ public: for (auto &rtcp : rtcps) { strong_self->_process->onRtcp(rtcp); } + // 收到sr rtcp后驱动返回rr rtcp + strong_self->sendRtcp(strong_self->_ssrc, (struct sockaddr *)(strong_self->_rtcp_addr.get())); }); GET_CONFIG(uint64_t, timeoutSec, RtpProxy::kTimeoutSec);