Flutter-AssetsAudioPlayer icon indicating copy to clipboard operation
Flutter-AssetsAudioPlayer copied to clipboard

Stop after playback

Open JMApps opened this issue 4 years ago • 3 comments

When I play audio from the playlist, after the end of the track, it automatically skips to the next track. How can I ensure that one track is played in the playlist and there is a stop after it, and not the next one?

JMApps avatar Aug 15 '21 07:08 JMApps

I looked into the library code and found that the hasNext variable is true. As I understand it, because of this, the next one on the list is reproduced

JMApps avatar Aug 15 '21 12:08 JMApps

Is there a workaround for this for now? I don't want the player to auto play to next one in the playlist.

AhmadFadilB avatar Oct 04 '21 06:10 AhmadFadilB

@florent37 It shouldn't bother you, just add a method so that you can enable or disable sequential playback of tracks in the playlist.

JMApps avatar Dec 26 '21 07:12 JMApps