ant-media / Ant-Media-Server

Ant Media Server is a live streaming engine software that provides adaptive, ultra low latency streaming by using WebRTC technology with ~0.5 seconds latency. Ant Media Server is auto-scalable and it can run on-premise or on-cloud.
https://antmedia.io
Other
4.27k stars 628 forks source link

Playlist is not continuing to play. Have to refresh after each video #3615

Closed Fyb3roptik closed 3 years ago

Fyb3roptik commented 3 years ago

Short description

When creating a playlist and watching it, I have to refresh after each video finishes in order to see the next one

Environment

Steps to reproduce

  1. Create a playlist with more than 1 video
  2. After each video finishes it wont let you continue watching unless you refresh

Expected behavior

m3u8 file should not have:

#EXT-X-ENDLIST

Actual behavior

m3u8 has

#EXT-X-ENDLIST
mekya commented 3 years ago

Yes you're right. I've moved to the backlog to schedule.

Thank you.

cemklc commented 3 years ago

Hi,

can you try adding these settings to your app settings and try it again?

That file is located at: /webapps/App-Name/WEB-INF/red5-web.properties

settings.deleteHLSFilesOnEnded=false (it is written as true by default change it to false) settings.hlsflags=+append_list

Fyb3roptik commented 3 years ago

Did this and restarted the service, but it is still happening

Fyb3roptik commented 3 years ago

Any updates?

golgetahir commented 3 years ago

Hi @Fyb3roptik

Can you add these settings in your re5-web.properties file as Cem suggested and restart the server, then try again please. Location: /webapps//WEB-INF/red5-web.properties;

settings.hlsflags=delete_segments+append_list+omit_endlist settings.deleteHLSFilesOnEnded=false

The setting of omit_endlist will disable putting #EXT-X-ENDLIST at the end of your m3u8 file as referenced here: http://ffmpeg.org/ffmpeg-formats.html#hls-2

Deleting the files at the end will break the flow so we are adding it. With these settings we had no problem on our tests.

Cheers.

Fyb3roptik commented 3 years ago
settings.hlsflags=delete_segments+append_list+omit_endlist

This fixed it for me. Thanks!