Merge pull request #651 from sunhui2013/master

添加停止、恢复rtp代理rtp超时检查功能,解决播放器暂停后断流问题
This commit is contained in:
夏楚
2020-12-27 20:56:33 +08:00
committed by GitHub
7 changed files with 126 additions and 1 deletions

View File

@@ -106,7 +106,7 @@ void RtspSession::onManager() {
}
}
if ((_rtp_type == Rtsp::RTP_UDP || _push_src ) && _alive_ticker.elapsedTime() > keep_alive_sec * 1000) {
if ((_rtp_type == Rtsp::RTP_UDP || _push_src ) && _alive_ticker.elapsedTime() > keep_alive_sec * 1000 && _enable_send_rtp) {
//如果是推流端或者rtp over udp类型的播放端那么就做超时检测
shutdown(SockException(Err_timeout,"rtp over udp session timeouted"));
return;