digimezzo / dopamine-windows

Audio player which tries to make organizing and listening to music as simple and pretty as possible.
https://digimezzo.github.io/site/
GNU General Public License v3.0
1.88k stars 264 forks source link

Media control priority. #811

Open otaviomad opened 6 years ago

otaviomad commented 6 years ago

I'm submitting a...


[ ] Regression 
[ ] Bug report 
[X] Feature request

I think this is by far the best player aroud at the moment. But coming from aimp I have only one gripe with it: when I press any of the multimedia buttons on my keyboard, it also controls spotify (which I always have open)

This wouldn't happen on AIMP, as it would be prioritized and spotify would be left to be all alone in the corner. If possible, can the media priority be increased or controllable?

digimezzo commented 6 years ago

I'm currently unsure how Dopamine is having an influence on another application. Doesn't Spotify also react when you press a media key when Dopamine is not running? Are you using the System notifications in Dopamine?

otaviomad commented 6 years ago

I think I was unclear. I meant pressing the multimedia buttons on my keyboard, not the software buttons on Dopamine.

digimezzo commented 6 years ago

I understood that correctly. Could you answer the questions above? They could help understanding what is happening.

otaviomad commented 6 years ago

Ah, I'm dumb, sorry. When I press play/pause both dopamine and spotify react.

Sorry, phoneposting and I didn't answer it. Yes, it does react when Dopamine is not running. But the thing is, on AIMP (which I simply can't take anymore), when it is open, spotify wouldn't react to the media player presses. I don't think I'm using system notifications, but I'm not sure, I can't seem to find them in the config menus.

digimezzo commented 6 years ago

No problem. Thanks for the info. So I can conclude that AIMP has a trick to stop propagation of the media key presses to other applications. That might be challenging :)

huntardy commented 6 years ago

AIMP and google music play have an option for local & global toggle of media keys, maybe when selecting global it uses RegisterHotKey function with nomods to block the media keys in other aps?