icefields / Power-Ampache-2

Android Music Streaming App suite in Material You style.
 Connects to Ampache, Nextcloud Music and compatible backends (Ampache API 4 and above).
https://power.ampache.dev
GNU General Public License v3.0
78 stars 7 forks source link

[Bug] Playback is paused if started immediately after queue was cleared #151

Open CrazyStevenz opened 2 months ago

CrazyStevenz commented 2 months ago

To reproduce: 1) Play some music. 2) Go to the home page. 3) Long press the stop button and quickly click the tune spinner. 4) Music starts playing and immediately pauses. 5) null is printed in the Debug Logs.

icefields commented 2 months ago

good catch. Will fix asap

icefields commented 1 month ago

I did some tests and I now understand what is happening. When you press the stop button the OS is asked to kill the music/notification service. The system takes a few seconds to kill a service, so if you play something before, the playback is going to start while the service is still being destroyed, then when it's actually killed, the music stops, when you press play again you'll notice there's no notification (at least for me, and it might actually be retained, the behaviour from this point on is broken) and the playback might work but might stutter or die alltogether. I will fix in the next-next release, since I have higher priorities right now.