mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-25 20:27:34 +08:00
修复whip delete_webrtc未注销流 (#2688)
bug触发条件: 1、obs whip 推流到zlm 2、关闭推流 3、zlm 未注销流
This commit is contained in:
parent
19d6f1a003
commit
eb382c3fc9
@ -163,4 +163,9 @@ void WebRtcPusher::onRtcpBye(){
|
|||||||
WebRtcTransportImp::onRtcpBye();
|
WebRtcTransportImp::onRtcpBye();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void WebRtcPusher::onShutdown(const SockException &ex) {
|
||||||
|
_push_src = nullptr;
|
||||||
|
WebRtcTransportImp::onShutdown(ex);
|
||||||
|
}
|
||||||
|
|
||||||
}// namespace mediakit
|
}// namespace mediakit
|
@ -23,12 +23,14 @@ public:
|
|||||||
static Ptr create(const EventPoller::Ptr &poller, const RtspMediaSource::Ptr &src,
|
static Ptr create(const EventPoller::Ptr &poller, const RtspMediaSource::Ptr &src,
|
||||||
const std::shared_ptr<void> &ownership, const MediaInfo &info, const ProtocolOption &option, bool preferred_tcp = false);
|
const std::shared_ptr<void> &ownership, const MediaInfo &info, const ProtocolOption &option, bool preferred_tcp = false);
|
||||||
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
///////WebRtcTransportImp override///////
|
///////WebRtcTransportImp override///////
|
||||||
void onStartWebRTC() override;
|
void onStartWebRTC() override;
|
||||||
void onDestory() override;
|
void onDestory() override;
|
||||||
void onRtcConfigure(RtcConfigure &configure) const override;
|
void onRtcConfigure(RtcConfigure &configure) const override;
|
||||||
void onRecvRtp(MediaTrack &track, const std::string &rid, RtpPacket::Ptr rtp) override;
|
void onRecvRtp(MediaTrack &track, const std::string &rid, RtpPacket::Ptr rtp) override;
|
||||||
|
void onShutdown(const SockException &ex) override;
|
||||||
void onRtcpBye() override;
|
void onRtcpBye() override;
|
||||||
//// dtls相关的回调 ////
|
//// dtls相关的回调 ////
|
||||||
void OnDtlsTransportClosed(const RTC::DtlsTransport *dtlsTransport) override;
|
void OnDtlsTransportClosed(const RTC::DtlsTransport *dtlsTransport) override;
|
||||||
|
Loading…
Reference in New Issue
Block a user