mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-30 06:42:22 +08:00
rtc stop push unregister mediasource
This commit is contained in:
@@ -150,4 +150,15 @@ void WebRtcPusher::onRtcConfigure(RtcConfigure &configure) const {
|
||||
|
||||
float WebRtcPusher::getLossRate(MediaSource &sender,mediakit::TrackType type){
|
||||
return WebRtcTransportImp::getLossRate(type);
|
||||
}
|
||||
|
||||
void WebRtcPusher::OnDtlsTransportClosed(const RTC::DtlsTransport *dtlsTransport) {
|
||||
//主动关闭推流,那么不等待重推
|
||||
_push_src = nullptr;
|
||||
WebRtcTransportImp::OnDtlsTransportClosed(dtlsTransport);
|
||||
}
|
||||
|
||||
void WebRtcPusher::onRtcpBye(){
|
||||
_push_src = nullptr;
|
||||
WebRtcTransportImp::onRtcpBye();
|
||||
}
|
||||
Reference in New Issue
Block a user