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

RTC: Refine fast timer

This commit is contained in:
winlin 2021-05-07 18:42:36 +08:00
parent 92fc0af8f4
commit 25f17c32e9
5 changed files with 21 additions and 3 deletions

View file

@ -504,8 +504,10 @@ srs_error_t SrsRtcStream::on_publish()
return srs_error_wrap(err, "bridger on publish");
}
// For SrsRtcStream::on_timer()
// The PLI interval for RTC2RTMP.
pli_for_rtmp_ = _srs_config->get_rtc_pli_for_rtmp(req->vhost);
// @see SrsRtcStream::on_timer()
_srs_hybrid->timer100ms()->subscribe(this);
}