添加无人观看主动断开事件

This commit is contained in:
xiongziliang 2019-05-27 18:41:37 +08:00
parent b0bf216bc2
commit 5b88057a89
1 changed files with 2 additions and 3 deletions

View File

@ -39,9 +39,8 @@ public:
RtspMediaSourceMuxer(const string &vhost,
const string &strApp,
const string &strId,
const TitleSdp::Ptr &title = nullptr,
bool masterSrc = true) : RtspMuxer(title){
_mediaSouce = std::make_shared<RtspMediaSource>(vhost,strApp,strId,0,masterSrc);
const TitleSdp::Ptr &title = nullptr) : RtspMuxer(title){
_mediaSouce = std::make_shared<RtspMediaSource>(vhost,strApp,strId);
getRtpRing()->setDelegate(_mediaSouce);
}
virtual ~RtspMediaSourceMuxer(){}