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

Feature request: pause when status changed #20

Open
Brli opened this issue Dec 10, 2024 · 6 comments
Open

Feature request: pause when status changed #20

Brli opened this issue Dec 10, 2024 · 6 comments

Comments

@Brli
Copy link

Brli commented Dec 10, 2024

  1. Pause when unplugged (3.5mm), or disconnected (bt).

  2. Pause when calling incoming.

  3. Pause when other app start playing.

  4. Resume accordingly.

@TJYSunset
Copy link
Owner

Supposedly added in https://github.com/TJYSunset/Phocid/releases/tag/v20241210. Can't test for bluetooth headphones personally because I don't own any. Please reopen if bluetooth isn't working.

Resume accordingly.

There doesn't seem to be a good way to resume in a context-aware and future-proof manner, so I just added an option to start playing when headphones are plugged in.

@TJYSunset
Copy link
Owner

Pause when other app start playing.

Didn't see this one you edited on later. There doesn't seem to be a good way of implementing this either.

I can claim to the system that the app is playing speech instead of music (source), but that also pauses playback on notifications, which is probably not what you want. And what if Google decided to arbitrarily change the behavior (because the current behavior is only described in a random Medium post and not in the official docs)? What if it had unintended side-effects?

There's also a manual way, but there's no info about this on the internet except this... oh wait, so the auto play feature I just wrote might not be working on Android 15, which I can't test for.

I'm tired of this Google bullshit. Maybe I'll look at this later.

@TJYSunset TJYSunset reopened this Dec 10, 2024
@Brli
Copy link
Author

Brli commented Dec 19, 2024

  1. would be fine, well...most app would just do a fade-away and fade-in to fake the intent behavior.

on 20241212, it still doesn't pause if I simply disable bluetooth which cause instant drop (obviously) of wireless earphone. It then play out through built-in speaker.

@TJYSunset
Copy link
Owner

Just ordered a pair of bluetooth earbuds for debugging. Will have to wait a few days for delivery.

@TJYSunset
Copy link
Owner

Playback is paused upon disabling bluetooth on LineageOS 21 (Android 14). What is your Android version?

Also can you try the latest version from github? (It has the same signature as the F-Droid releases, so no uninstalling is necessary.) I upgraded the audio library in 20241217 which might be related to this.

@Brli
Copy link
Author

Brli commented Dec 20, 2024

20241219 works as expected.

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