mirror of
https://gitee.com/xia-chu/ZLMediaKit.git
synced 2026-05-20 00:37:49 +08:00
hls用作点播时,那么m3u8文件实时记录为点播
This commit is contained in:
parent
0c79af024c
commit
9b6ee8131b
@ -110,8 +110,8 @@ void HlsMaker::addNewSegment(uint32_t) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//关闭并保存上一个切片
|
//关闭并保存上一个切片,如果_seg_number==0,那么是点播。
|
||||||
flushLastSegment();
|
flushLastSegment(_seg_number == 0);
|
||||||
//新增切片
|
//新增切片
|
||||||
_last_file_name = onOpenSegment(_file_index++);
|
_last_file_name = onOpenSegment(_file_index++);
|
||||||
//重置切片计时器
|
//重置切片计时器
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user