volume keys do not control volume if app is not in foreground
- MPD is running in a Termux session on the phone
- MALP is directly connected to the phone via localhost:6600 (streaming not enabled)
Version of M.A.L.P.
Version of MPD
Host Operating System
Android 9 / Pie
Device Manufacturer and model
The volume keys in Android 9 (and possible older) default to controlling the "cast" volume, rather than the media volume when MALP is not in the foreground (including on the lockscreen).
I suspect this has something to do with how the app's sound is registered, or possible the notification (since that is visible while the app is in the background?). I would be happy to look into the issue / create a PR if someone can point me in the right direction in the codebase.
Volume keys control the media volume when MALP is in background.
Volume keys control the "cast" volume when MALP is in background.