fix(rtcp/bye): 收到rtcp bye时不断开webrtc连接 (#2123)

bye(203) 会在 sender audio track mute 时出现, 不能作为 shutdown 的依据
This commit is contained in:
johzzy 2022-11-28 17:52:37 +08:00 committed by GitHub
parent 6c655810ec
commit bc4fa2bc53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -160,7 +160,6 @@ void WebRtcPusher::OnDtlsTransportClosed(const RTC::DtlsTransport *dtlsTransport
}
void WebRtcPusher::onRtcpBye(){
_push_src = nullptr;
WebRtcTransportImp::onRtcpBye();
}

View File

@ -794,7 +794,7 @@ void WebRtcTransportImp::onRtcp(const char *buf, size_t len) {
_ssrc_to_track.erase(it);
}
onRtcpBye();
onShutdown(SockException(Err_eof, "rtcp bye message received"));
// bye 会在 sender audio track mute 时出现, 因此不能作为 shutdown 的依据
break;
}
case RtcpType::RTCP_PSFB: