mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +08:00
修复动态添加HlsMediaSource后无法获取Track列表的问题
This commit is contained in:
parent
d3db5e0ce0
commit
e192931429
@ -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) {
|
||||||
//停止录制
|
//停止录制
|
||||||
|
Loading…
Reference in New Issue
Block a user