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

RTC: Support RTP packet cache manager

This commit is contained in:
winlin 2021-02-26 16:21:59 +08:00
parent bde86a2b23
commit 86f43d4f72
6 changed files with 229 additions and 20 deletions

View file

@ -283,7 +283,10 @@ srs_error_t SrsRtcServer::initialize()
return srs_error_wrap(err, "black hole");
}
srs_trace("RTC server init ok");
bool rtp_cache = _srs_config->get_rtc_server_rtp_cache();
_srs_rtp_cache->set_enabled(rtp_cache);
srs_trace("RTC server init ok, rtp_cache=%d", rtp_cache);
return err;
}