CliffracerMerchant / SoundAura

Apache License 2.0
42 stars 2 forks source link

Bluetooth headphone controls #44

Open flipside101 opened 10 months ago

flipside101 commented 10 months ago

Hi, thanks for this app it was great to finally find something that allowed me to layer sounds that I didn't need to get an expensive subscription to.

One request however, I can't seem to get it to react to the pause/play controls on my pixel buds pro. Is this something that you can easily add ?

CliffracerMerchant commented 10 months ago

Are you using the 'play in background' option in the app settings? If it is turned off, then the app should have audio focus when it is playing, and play/pause should work once you have started the app's playback manually. In theory using the headset play button should also start playback even if the app is completely stopped if it was the most recently playing app, although this doesn't seem to be working at the moment.

If 'play in background' is turned on, then the app won't have audio focus when it is playing, and therefore won't receive the button press events unless it is in the foreground as far as I know. I think this is unavoidable because the Android system will only send the commands to the app that has audio focus, but I'm not entirely sure about this.