增加长期保存hls切片的功能,segKeep=0为不长期保存,segKeep=1为长期保存。此功能部分等效于segNum=0的情况,不同的是这个保留不会在m3u8文件中体现。

This commit is contained in:
WuPeng
2022-05-10 17:32:50 +08:00
parent a9d7874467
commit 5bc313bafe
8 changed files with 34 additions and 7 deletions

View File

@@ -295,6 +295,8 @@ namespace Hls {
extern const std::string kSegmentDuration;
//m3u8文件中HLS切片个数如果设置为0则不删除切片而是保存为点播
extern const std::string kSegmentNum;
//如果设置为0则不保留切片设置为1则一直保留切片
extern const std::string kSegmentKeep;
//HLS切片从m3u8文件中移除后继续保留在磁盘上的个数
extern const std::string kSegmentRetain;
//HLS文件写缓存大小