just_audio icon indicating copy to clipboard operation
just_audio copied to clipboard

SeekToNext is not working when play state is PAUSE

Open hezhong0711 opened this issue 1 year ago • 2 comments

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:

  1. 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:

  1. run example_playlist.dart
  2. click play button and make it paused.
  3. click next or previous button
  4. 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

hezhong0711 avatar May 30 '23 12:05 hezhong0711

also encountered this issue.

vladislove80 avatar Sep 27 '23 22:09 vladislove80

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.

daniellampl avatar Dec 22 '23 02:12 daniellampl