just_audio
just_audio copied to clipboard
SeekToNext is not working when play state is PAUSE
Which API doesn't behave as documented, and how does it misbehave? when I call seekToNext or seekToPrevious method, the audio player won't change to next/previous sone when the play state is PAUSE sometimes, however this function is ok when the play state is PLAY.
Minimal reproduction project Provide a link here using one of two options:
- https://github.com/ryanheise/just_audio/blob/minor/just_audio/example/lib/example_playlist.dart
To Reproduce (i.e. user steps, not code) Steps to reproduce the behavior:
- run example_playlist.dart
- click play button and make it paused.
- click next or previous button
- the song maybe won't change
Error messages
Expected behavior
Screenshots
Desktop (please complete the following information):
- OS: Macos 1.3
Flutter SDK version
Flutter 3.7.12
also encountered this issue.
I'm experiencing the same behavior.
As soon as the playingState changes from PLAY to PAUSE and the processingState is not IDLE seekToNext
and seekToPrevious
wait until the next (or previous) track is loaded.