1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

RTC: Refine timer to 20ms, twcc to 40ms

This commit is contained in:
winlin 2021-02-07 21:08:42 +08:00
parent d069346f6b
commit ccb6c49029

View file

@ -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");
}