优化pauseRtpCheck接口,新增pause_seconds参数

This commit is contained in:
xia-chu
2025-09-09 23:11:19 +08:00
parent 5686027fc2
commit 88b422db08
5 changed files with 28 additions and 25 deletions

View File

@@ -102,7 +102,7 @@ API_EXPORT void API_CALL mk_rtp_pause_check(const char *app, const char *stream)
auto src = MediaSource::find(DEFAULT_VHOST, app, stream);
auto process = src ? src->getRtpProcess() : nullptr;
if (process) {
process->setStopCheckRtp(true);
process->pauseRtpTimeout(true);
}
}
@@ -110,7 +110,7 @@ API_EXPORT void API_CALL mk_rtp_resume_check(const char *app, const char *stream
auto src = MediaSource::find(DEFAULT_VHOST, app, stream);
auto process = src ? src->getRtpProcess() : nullptr;
if (process) {
process->setStopCheckRtp(false);
process->pauseRtpTimeout(false);
}
}