HLS .m3u8 and .ts files don't clean in some of cases for WebRTC streaming

588 views
Skip to first unread message

Valery Kharisov

unread,
Sep 5, 2019, 2:15:50 AM9/5/19
to Ant Media Server
Hello, guys, I have a problem with hls playlists in antmedia community version

Sometimes when session doesn't close clean or for unknown reasons .m3u8 playlists doesn't clean on /usr/local/antmedia/webapps/WebRTCApp/streams folder.

I encounter this issue when I delete stream in dashboard or if WebRTC session doesn't end up with "stop" command, so the stream name that i use in this cases becoming "cursed" , cause m3u8 files doesn't delete or it's empty

This issue discribed in https://github.com/ant-media/Ant-Media-Server/issues/354, but solution, provided doesn't work. *.m3u8 and *.ts files is still in folder, but manifest file is empty when i open it in nano editor, but it should contain list of future chunks or something like that.

This issue is effecting on future, cause

1. I cannot start new stream with same name (I guess, that antmedia cannot write new chunk manifest)
2. HLS.js player that I use (obvious, cause m3u8 manifest is empty file) shows me manifest parsing error, and I unable to watch stream.

I saw in link above that we can configure

settings.deleteHLSFilesOnEnded=true

To make antmedia cleanup the unnessesary m3u8 files, but it seems like it's not work properly, cause issue still there

Please, can you provide suggestions or any thoughts about how this issue can be resolved to avoid this issue or maybe fix this myself in code?

Thanks, Valery

Murat Aydin

unread,
Sep 5, 2019, 3:34:28 AM9/5/19
to Valery Kharisov, Ant Media Server
Hi Valery,

Could you please add your findings as a comment to the related GitHub issue that you mentioned?

Best regards,

--
You received this message because you are subscribed to the Google Groups "Ant Media Server" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ant-media-serv...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ant-media-server/0353d471-d8eb-4b80-b321-bee5dfaff456%40googlegroups.com.

Valery Kharisov

unread,
Sep 5, 2019, 4:36:11 AM9/5/19
to Ant Media Server
Hello, no problem, i copy topic starter post to related issue you can see it here


четверг, 5 сентября 2019 г., 12:34:28 UTC+5 пользователь Murat Aydin написал:
To unsubscribe from this group and stop receiving emails from it, send an email to ant-medi...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages