修复动态添加HlsMediaSource后无法获取Track列表的问题

This commit is contained in:
xiongziliang 2020-04-05 10:32:42 +08:00
parent d3db5e0ce0
commit e192931429

View File

@ -96,6 +96,7 @@ bool MultiMuxerPrivate::setupRecord(MediaSource &sender, Recorder::type type, bo
if (hls_src) { if (hls_src) {
//设置HlsMediaSource的事件监听器 //设置HlsMediaSource的事件监听器
hls_src->setListener(_meida_listener); hls_src->setListener(_meida_listener);
hls_src->setTrackSource(shared_from_this());
} }
} else if (!start && _hls) { } else if (!start && _hls) {
//停止录制 //停止录制