We are trying to implement an AudioPlayer skill with Lambda which should play a playlist of multiple HLS streams, but we're having problems to get the playback to work since our device (Echo Dot) always stops after the first element.
The problem is, that we don't receive a PlaybackNearlyFinished most of the times (in rare cases it seems to work). So we cannot ENQUEUE further elements. We only receive a PlaybackStarted and at the end a PlaybackFinished, but then its too late because the playback is stopped already.
We've tried it with HLS VOD playlist files but also with standard HLS files. In all cases the m3u8 files had a "EXT-X-ENDLIST" tag. Actually we would like to play live-playlists as well, but the above problem is blocking us from further development.
It looks like the PlaybackNearlyFinished-event is not fired correctly for HLS streams, but even with short mp3 files (eg. 30-60s) we have problems of missing PlaybackNearlyFinished-events.
NOTE: There are multiple forum entries and github issues that seem to be related. We've already tried various hints (eg. using unique tokens), but none of them solved our issue.