rtc receive sr reset alive ticker

This commit is contained in:
xiongguangjie 2022-09-09 23:04:28 +08:00
parent 098bd319ab
commit d04a6d4355

View File

@ -718,6 +718,7 @@ void WebRtcTransportImp::onRtcp(const char *buf, size_t len) {
for (auto rtcp : rtcps) {
switch ((RtcpType)rtcp->pt) {
case RtcpType::RTCP_SR: {
_alive_ticker.resetTime();
// 对方汇报rtp发送情况
RtcpSR *sr = (RtcpSR *)rtcp;
auto it = _ssrc_to_track.find(sr->ssrc);