mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-27 05:38:31 +08:00
修复rtsp推流转协议失败的bug
This commit is contained in:
parent
453660ab79
commit
a30a4e24f1
@ -106,6 +106,10 @@ public:
|
|||||||
_muxer = std::make_shared<MultiMediaSourceMuxer>(getVhost(), getApp(), getId(), _demuxer->getDuration(), enableRtsp, false, enableHls, enableMP4);
|
_muxer = std::make_shared<MultiMediaSourceMuxer>(getVhost(), getApp(), getId(), _demuxer->getDuration(), enableRtsp, false, enableHls, enableMP4);
|
||||||
_muxer->setListener(getListener());
|
_muxer->setListener(getListener());
|
||||||
_muxer->setTrackListener(this);
|
_muxer->setTrackListener(this);
|
||||||
|
for(auto &track : _demuxer->getTracks(false)){
|
||||||
|
_muxer->addTrack(track);
|
||||||
|
track->addDelegate(_muxer);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -97,6 +97,10 @@ public:
|
|||||||
_muxer = std::make_shared<MultiMediaSourceMuxer>(getVhost(), getApp(), getId(), _demuxer->getDuration(), false, enableRtmp, enableHls, enableMP4);
|
_muxer = std::make_shared<MultiMediaSourceMuxer>(getVhost(), getApp(), getId(), _demuxer->getDuration(), false, enableRtmp, enableHls, enableMP4);
|
||||||
_muxer->setListener(getListener());
|
_muxer->setListener(getListener());
|
||||||
_muxer->setTrackListener(this);
|
_muxer->setTrackListener(this);
|
||||||
|
for(auto &track : _demuxer->getTracks(false)){
|
||||||
|
_muxer->addTrack(track);
|
||||||
|
track->addDelegate(_muxer);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user