mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-25 03:02:22 +08:00
修复whip delete_webrtc未注销流 (#2688)
bug触发条件: 1、obs whip 推流到zlm 2、关闭推流 3、zlm 未注销流
This commit is contained in:
@@ -149,7 +149,7 @@ void WebRtcPusher::onRtcConfigure(RtcConfigure &configure) const {
|
||||
configure.audio.direction = configure.video.direction = RtpDirection::recvonly;
|
||||
}
|
||||
|
||||
float WebRtcPusher::getLossRate(MediaSource &sender,TrackType type){
|
||||
float WebRtcPusher::getLossRate(MediaSource &sender,TrackType type) {
|
||||
return WebRtcTransportImp::getLossRate(type);
|
||||
}
|
||||
|
||||
@@ -159,8 +159,13 @@ void WebRtcPusher::OnDtlsTransportClosed(const RTC::DtlsTransport *dtlsTransport
|
||||
WebRtcTransportImp::OnDtlsTransportClosed(dtlsTransport);
|
||||
}
|
||||
|
||||
void WebRtcPusher::onRtcpBye(){
|
||||
void WebRtcPusher::onRtcpBye() {
|
||||
WebRtcTransportImp::onRtcpBye();
|
||||
}
|
||||
|
||||
void WebRtcPusher::onShutdown(const SockException &ex) {
|
||||
_push_src = nullptr;
|
||||
WebRtcTransportImp::onShutdown(ex);
|
||||
}
|
||||
|
||||
}// namespace mediakit
|
||||
Reference in New Issue
Block a user