This commit is contained in:
xiongziliang 2022-03-12 14:02:12 +08:00
parent 4dc621e1bb
commit 1cf0a0cc20

View File

@ -80,9 +80,7 @@ public:
//开启直接代理模式时rtsp直接代理不重复产生但是有些rtsp推流端由于sdp中已有sps ppsrtp中就不再包括sps pps,
//导致rtc无法播放所以在rtsp推流rtc播放时建议关闭直接代理模式
_option = option;
if (!direct_proxy) {
_option.enable_rtsp = true;
}
_option.enable_rtsp = !direct_proxy;
_muxer = std::make_shared<MultiMediaSourceMuxer>(getVhost(), getApp(), getId(), _demuxer->getDuration(), _option);
_muxer->setMediaListener(getListener());
_muxer->setTrackListener(std::static_pointer_cast<RtspMediaSourceImp>(shared_from_this()));