如何将流的HLS文件保留在Ant Media Server中? [英] How can I keep HLS files of a stream in Ant Media Server?
本文介绍了如何将流的HLS文件保留在Ant Media Server中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用Ant Media Server,并且知道HLS segment(ts)文件的数量达到 hls_list_size + 1
时会自动删除,并且所有HLS文件也会在流的末尾删除.流完成后如何保存HLS文件?
I am using Ant Media Server and know that HLS segment(ts) files are deleted automatically when their count reaches to hls_list_size+1
and also all HLS files are deleted at the end of the stream.
How can I keep HLS files after the stream finishes?
推荐答案
您应将以下行添加到位于/usr/local/antmedia/webapps/APP_NAME/WEB-INF/的应用程序设置文件中red5-web.properties
You should add the following lines into the application settings file which is located at /usr/local/antmedia/webapps/APP_NAME/WEB-INF/red5-web.properties
- 通过添加
settings.hlsflags =
来禁用定期删除 - 通过添加
settings.deleteHLSFilesOnEnded = false
来最后禁止删除
- to disable the periodic deletion by adding
settings.hlsflags=
- to disable the deletion at the end by adding
settings.deleteHLSFilesOnEnded=false
这篇关于如何将流的HLS文件保留在Ant Media Server中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文