Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Phocid pauses unexpectedly in games & playback not resuming via JBL Live #75

Open
BlazeVertex opened this issue Mar 16, 2025 · 4 comments

Comments

@BlazeVertex
Copy link

I've encountered two issues with Phocid (release 20250310):

  1. Unwanted pausing in games

Even when the in-game audio is turned off and "Pause on audio focus loss" is disabled, Phocid still pauses whenever I start a game. This makes it difficult to listen to music while gaming.

  1. Playback not resuming via JBL Live headphones via bluetooth

When I pause playback using my JBL Live headphones and turn them off, Phocid does not remember that it was paused when I turn them back on.

Pressing play on the headphones does not resume playback—I have to open the app and manually resume.

@TJYSunset
Copy link
Owner

These sound like problems caused by either (a) strange behavior in your Android vendor's implementation or (b) bugs in the underlying media3 library by Google. I can't reproduce these on my setup (LineageOS 22.1 and Sony headphones), and I'm afraid I can do little about third-party issues unless I can physically access the same devices.

For problem one, Can you try v20241208? This version completely ignores the audio focus system (and have the side effect of not pausing on incoming calls or headphones disconnecting), and if it works for you then I can make that behavior an option.

For problem two, it's expected that playback would not resume when the app is killed (i.e. you left it in the background paused for too long), due to Android's restrictions. If that's not the case, it's probably a bug in third-party components.

@BlazeVertex
Copy link
Author

BlazeVertex commented Mar 17, 2025

https://github.com/TJYSunset/Phocid/commits/v20241208 I tested the version u said same problem. I don't have it with Vinyl Music Player and shuttlemusicplayer

@TJYSunset
Copy link
Owner

Vinyl is using the deprecated media library and Shuttle is using some custom low-level solution, so that looks like a bug in media3. Unfortunately I can't do anything about bugs in Google's obscure code on specific hardware - you can try to raise a issue there and see if they could offer help.

In case you'd like to propose this, no, using a deprecated library or copying the custom solution from Shuttle is not feasible in the long run. I can't possibly keep up with all future Android updates and all the different hardware out there as a solo hobbyist.

@BlazeVertex
Copy link
Author

BlazeVertex commented Mar 17, 2025

I forgot to mention i have a Motorola running Android 12 but the site don't kill my apps is Motorola pretty good. Just weird that media3 is broken.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants