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:
parent
d069346f6b
commit
ccb6c49029
1 changed files with 2 additions and 2 deletions
|
@ -855,7 +855,7 @@ srs_error_t SrsRtcPlayStream::do_request_keyframe(uint32_t ssrc, SrsContextId ci
|
||||||
|
|
||||||
SrsRtcPublishStream::SrsRtcPublishStream(SrsRtcConnection* session, const SrsContextId& cid)
|
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;
|
cid_ = cid;
|
||||||
is_started = false;
|
is_started = false;
|
||||||
|
@ -966,7 +966,7 @@ srs_error_t SrsRtcPublishStream::start()
|
||||||
return err;
|
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");
|
return srs_error_wrap(err, "twcc tick");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue