About HLS m3u8 and .ts file refresh, and auto delete
Hello
In our project , I need make a hls stream for the test, but it’s have a few problems.
1.My stream server VM only have 8GB space for hard drive,
so I could not have too many cache for hls stream,
But I never find a command to control m3u8 and .ts file to auto delete too old file.
If any body know how to do it, please give me a hand ,thanks.
ps:sorry for I am pool in english,.
1 Answers
Hi Kazehung,
You can use the createhlsstream API but set the cleanupdestination and cleanuponclose attributes to 1, and set the playlist type to rolling. This call ensures that the folder where you write the hls files are devoid of unnecessary files.
For example,
createhlsstream localstreamnames=bunny targetFolder=../evo-webroot groupName=hls playlisttype=rolling playlistlength=5 chunklength=10 cleanupdestination=1 cleanuponclose=1
For more information on this API, take a look at http://docs.evostream.com/ems_api_definition/createhlsstream.
Thanks.
For example,
createhlsstream localstreamnames=bunny targetFolder=../evo-webroot groupName=hls playlisttype=rolling playlistlength=5 chunklength=10 cleanupdestination=1 cleanuponclose=1
For more information on this API, take a look at http://docs.evostream.com/ems_api_definition/createhlsstream.
Thanks.