abarisain / dmix

A modern MPD Client for Android.
Apache License 2.0
587 stars 205 forks source link

Volume buttons only work when display is on #680

Open hurzl opened 9 years ago

hurzl commented 9 years ago

don't really make sense that way

abarisain commented 9 years ago

I can't intercept them when the screen is off if you are not in notification mode (with the cover art and remote control on the lockscreen). They're sent as simple keypresses to the topmost activity, which is not mpdroid when the screen is off

hurzl commented 9 years ago

:-1: can hardly believe it :(

hurzl commented 9 years ago

It doesn't work with notification on either

ddd999 commented 9 years ago

Is there a reason why MPDroid doesn't identify itself to Android as a media player?

If I have audio playing in any other media player app (Play Music, Beyondpod, Mixcloud, etc), the volume buttons control the volume of that audio regardless of which activity is on top, and when the screen is off.

abarisain commented 9 years ago

The volume buttons will not control the app audio but rather the Media Volume of your phone.

MPDroid doesn't identify as a Media Player since it has no way to know when it should stop doing so, since it's not playing local'y. But, when the notification is enabled, it does. It even takes the audio focus in order to appear on the lockscreen Le mer. 4 mars 2015 à 23:27, Dave M. notifications@github.com a écrit :

Is there a reason why MPDroid doesn't identify itself to Android as a media player?

If I have audio playing in any other media player app (Play Music, Beyondpod, Mixcloud, etc), the volume buttons control the volume of that audio regardless of which activity is on top, and when the screen is off.

— Reply to this email directly or view it on GitHub https://github.com/abarisain/dmix/issues/680#issuecomment-77263958.