添加停止、恢复rtp代理rtp超时检查功能

This commit is contained in:
sunhui
2020-12-25 16:05:38 +08:00
parent bc125e65be
commit c32c2146b2
7 changed files with 126 additions and 1 deletions

View File

@@ -90,5 +90,16 @@ uint16_t RtpServer::getPort() {
return _udp_server ? _udp_server->get_local_port() : 0;
}
void RtpServer::pauseRtpCheck(){
if(_rtp_process)
_rtp_process->setStopCheckRtp(true);
}
void RtpServer::resumeRtpCheck(){
if(_rtp_process)
_rtp_process->setStopCheckRtp(false);
}
}//namespace mediakit
#endif//defined(ENABLE_RTPPROXY)