RTP代理支持完整的事件

This commit is contained in:
xiongziliang
2020-02-28 16:25:14 +08:00
parent 5acdf1f789
commit 109fab2cb1
6 changed files with 114 additions and 8 deletions

View File

@@ -299,5 +299,13 @@ uint16_t RtpProcess::get_peer_port() {
return ntohs(((struct sockaddr_in *) _addr)->sin_port);
}
int RtpProcess::totalReaderCount(){
return _muxer->totalReaderCount();
}
void RtpProcess::setListener(const std::weak_ptr<MediaSourceEvent> &listener){
_muxer->setListener(listener);
}
}//namespace mediakit
#endif//defined(ENABLE_RTPPROXY)