Open SightSpirit opened 4 years ago
This issue happens in our app because simply said it acts like a webbrowser and the website is put into the background when you switch apps. Not much we can do about that. However, our intent is to replace the playback with a native implementation to fix that.
This issue has gone 120 days without comment. To avoid abandoned issues, it will be closed in 21 days if there are no new comments.
If you're the original submitter of this issue, please comment confirming if this issue still affects you in the latest release or master branch, or close the issue if it has been fixed. If you're another user also affected by this bug, please comment confirming so. Either action will remove the stale label.
This bot exists to prevent issues from becoming stale and forgotten. Jellyfin is always moving forward, and bugs are often fixed as side effects of other changes. We therefore ask that bug report authors remain vigilant about their issues to ensure they are closed if fixed, or re-confirmed - perhaps with fresh logs or reproduction examples - regularly. If you have any questions you can reach us on Matrix or Social Media.
Describe the bug
I use Jellyfin primarily for music—it's my de facto replacement for Google Play Music—and I often play music in the background while I am doing other things on my phone. Sometimes, I will open and switch among several apps in a short period of time, and this will sometimes cause my music to stop playing abruptly. When I switch back to the Jellyfin app, I see a black screen for a second before the splash-screen logo appears: basically, the app is starting up again, and my play queue is now empty.
Based on my limited knowledge of the Android backend, my hypothesis is that this is the result of some OS memory management. However, this issue has never happened to me with Google Play Music, Google Podcasts, or even the official VLC app, leading me to believe that there is some do-not-kill flag somewhere in each of those apps that gets set to true during playback.
This kind of unsolicited background app-killing can also be caused by Android's battery optimization service, but I have double-checked, and I have disabled that for Jellyfin. With that being the case, I am assuming that that is not related to this behavior.
To Reproduce
Expected behavior
My music should have continued uninterrupted!
Logs
(from server log, not client log; most addresses redacted; entries separated for clarity, and most relevant line emphasized)
System (please complete the following information):