playmymusic
playmymusic copied to clipboard
Correct the MediaKeys bus
Currently, the MediaKeys bus is not correctly defined.
If you run the application in a sandboxed env like Flatpak the mediakeys won't work. You can take a look at the default elementary Music application if you want an idea how things should be done.
@bilelmoussaoui I compared both MedieKeyListener. It looks very similar:
https://github.com/elementary/music/blob/master/src/Objects/MediaKeyListener.vala
https://github.com/artemanufrij/playmymusic/blob/master/src/Interfaces/MediaKeys.vala
Hi mate. I'm using Melody on elementary OS 6 Odin on an Asus notebook.
The only issue is that it doesn't recognize media shortcuts. The only one that works is the space shortcut, to pause and play.
The Music app (default of elementary) normally recognizes keyboard media shortcuts without any extra configuration.
is there anything i can do to work the media keyboard controls?