From ccb6c49029d2baa0b533fa08c1697174b5ea4c44 Mon Sep 17 00:00:00 2001 From: winlin Date: Sun, 7 Feb 2021 21:08:42 +0800 Subject: [PATCH] RTC: Refine timer to 20ms, twcc to 40ms --- trunk/src/app/srs_app_rtc_conn.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trunk/src/app/srs_app_rtc_conn.cpp b/trunk/src/app/srs_app_rtc_conn.cpp index 74a232d3a..66ed5503d 100644 --- a/trunk/src/app/srs_app_rtc_conn.cpp +++ b/trunk/src/app/srs_app_rtc_conn.cpp @@ -855,7 +855,7 @@ srs_error_t SrsRtcPlayStream::do_request_keyframe(uint32_t ssrc, SrsContextId ci SrsRtcPublishStream::SrsRtcPublishStream(SrsRtcConnection* session, const SrsContextId& cid) { - timer_ = new SrsHourGlass(this, 10 * SRS_UTIME_MILLISECONDS); + timer_ = new SrsHourGlass(this, 20 * SRS_UTIME_MILLISECONDS); cid_ = cid; is_started = false; @@ -966,7 +966,7 @@ srs_error_t SrsRtcPublishStream::start() return err; } - if ((err = timer_->tick(SRS_TICKID_TWCC, 50 * SRS_UTIME_MILLISECONDS)) != srs_success) { + if ((err = timer_->tick(SRS_TICKID_TWCC, 40 * SRS_UTIME_MILLISECONDS)) != srs_success) { return srs_error_wrap(err, "twcc tick"); }