rtc stop push unregister mediasource

This commit is contained in:
xiongguangjie
2022-09-07 19:10:06 +08:00
parent 6ca736f88a
commit 7f86299c80
4 changed files with 19 additions and 0 deletions

View File

@@ -766,6 +766,7 @@ void WebRtcTransportImp::onRtcp(const char *buf, size_t len) {
}
_ssrc_to_track.erase(it);
}
onRtcpBye();
onShutdown(SockException(Err_eof, "rtcp bye message received"));
break;
}
@@ -1051,6 +1052,8 @@ uint64_t WebRtcTransportImp::getDuration() const {
return _alive_ticker.createdTime() / 1000;
}
void WebRtcTransportImp::onRtcpBye(){}
/////////////////////////////////////////////////////////////////////////////////////////////
void WebRtcTransportImp::registerSelf() {