mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-16 04:55:58 +08:00
添加停止、恢复rtp代理rtp超时检查功能
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user