Closed esiqveland closed 3 years ago
Thanks for reporting, @esiqveland . I if I understand correctly, this is reproducible with the example, so you do not need to include a code snippet.
Can you confirm whether the example in the stable published version of audio_service exhibits the same bug as the example of the one-isolate
branch?
I can confirm seeking from lock screen works in the example when ran from master branch.
Seeking from lock screen does not work in example project on one-isolate
branch. Playback is set to zero, and the two playbars become out of sync until next playback event happens and moves the playback position on the lock screen to the new 'correct' position.
Does the same problem happen in the control center?
Yes
OK, I'm able to reproduce the lock screen issue on the Simulator, so hopefully what works for that will also work for the control center.
I noticed that the lock screen controls actually start working after issuing some state changes. I think I tried pausing first, then locking, and the controls then appeared to work (or maybe I also did a seek first).
So it is a matter of working out what is missing during initialisation.
Closing, as its fixed by #686
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs, or use StackOverflow if you need help with audio_service.
Which API doesn't behave as documented, and how does it misbehave?
Seeking from lock screen on iOS is not working. Whenever I seek, the position is set to zero instead of the position I seeked to.
It is working correctly in lock screen for Android 11.
Minimal reproduction project The example
To Reproduce (i.e. user steps, not code) Steps to reproduce the behavior:
Expected behavior Seek to the position set from lock screen.
Screenshots If applicable, add screenshots to help explain your problem.
Runtime Environment (please complete the following information if relevant):
Flutter SDK version
Additional context
Versions of audio_service:
My exact AudioHandler: