国标udp多端口模式支持收到sr rtcp后回复rr rtcp

确保国标停止rtp推流后也可以仅靠rtcp保活
This commit is contained in:
xiongziliang 2023-11-05 13:26:42 +08:00
parent bf6fccd954
commit 2628690673

View File

@ -89,6 +89,8 @@ public:
for (auto &rtcp : rtcps) { for (auto &rtcp : rtcps) {
strong_self->_process->onRtcp(rtcp); 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); GET_CONFIG(uint64_t, timeoutSec, RtpProxy::kTimeoutSec);