carlin-q-scott / browser-media-keys

Lets you control many web players using the media keys on your keyboard.
Mozilla Public License 2.0
123 stars 31 forks source link

Cinnamon sound applet integration #122

Open pop1040 opened 7 years ago

pop1040 commented 7 years ago

The cinnamon window manager has a global media control system for controlling the currently playing music or video. I am not sure if it is possible to integrate with this system from within a firefox extension but if it is possible to do so it would work far better with other applications which do integrate with it.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/43468715-cinnamon-sound-applet-integration?utm_campaign=plugin&utm_content=tracker%2F7600490&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F7600490&utm_medium=issues&utm_source=github).
carlin-q-scott commented 7 years ago

I know nothing about that desktop environment and it's hard enough supporting just the mainline Ubuntu desktop environment. If you can write code in a c language you could make the integration component for me and then I could connect it to the add-on. The hotkey handlers for various environments need to register to receive hotkeys from the desktop environment and then emit a standard media key event used by Firefox.

geekosaurusR3x commented 6 years ago

Hi In fact the question is to implement the MPRIS V2 protocol https://specifications.freedesktop.org/mpris-spec/latest/

This will be a uge feature for all Linux desktop :)

christophschw commented 6 years ago

+1 @skad This would work in GNOME and Plasma too. So you don't even need a Keyboard Grabber because the Shortcuts of the DE control the MPRIS-Applet of the DE which speaks to the Firefox exentsion

Shortcut → DE → Media Control of the DE → MPRIS interface of extension → Extension