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

Not working in FF 51, Gnome 3.22.2 #117

Open andypillip opened 7 years ago

andypillip commented 7 years ago

Hi there.

Awesome extension, but unfortunately for me it doesn't work for a while now. When pressing the play-key, I'm seeing Gnome's 🛇 sign, which tells that no application is currently listening to the media keys.

I'm on Fedora 25 (64 bit of course), Gnome 3.22.2 and Firefox 51.0.1.

I already used the extension, and at some point it stopped working.

I tried removing the extension, restarting Firefox, installing, restarting, which didn't change anything. Also I can Pin Media Keys to tabs, but that doesn't enable the function either.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/41889159-not-working-in-ff-51-gnome-3-22-2?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

This is probably the same issue as #114 and I posted a potential workaround. We changed the method for listening to key events in v1.0.0 of this add-on so going back to the older version should work.

Please let me know if the older version works for you.

andypillip commented 7 years ago

I cannot install 0.7.9. since it's not available for my platform.

But 0.7.8 works, thanks!

Apparently you know exactly what the issue is – can we expect a new version anytime soon? (:

carlin-q-scott commented 7 years ago

Haha, unfortunately it's not that easy. Some Linux configurations work with the new method and not the old one and some of those are also ubuntu. The simplest solution, which we already have for Windows, is to add a add-on preference checkbox that activates the old method.

jversusk commented 5 years ago

I seem to be having this same issue with Linux Mint 19 Cinnamon and Firefox 62.0.3. The libxcb-keysyms1 was already installed and the media keys work with other apps, but pressing the media keys with Firefox just displays the 🛇 sign. I'm unable to install any of the older versions, so I don't really know if the older method would work.

gmelikov commented 5 years ago

@jversusk bear in mind, that:

Due to the conversion, some features have been removed or modified:

  1. The browser window must be active for media keys to be detected.
  2. Only Play/Pause is supported; this is a Firefox limitation.
  3. Pinned tabs get priority over all other tabs when pressing a media key.
  4. The autoplay feature is disabled by default and cannot be enabled until I create a configuration page for the add-on.

So do you test with firefox window active?

jversusk commented 5 years ago

@gmelikov Checked all that, still not working. I was thinking maybe the media keys use DBus instead of XCB, but I'm not able to test it because the older versions won't install.

carlin-q-scott commented 5 years ago

@jversusk Can you open up the options page for the extension and see if you can assign your key presses to the media events manually?

jversusk commented 5 years ago

Tried that, getting the same 🛇 sign. When I tried removing the media shortcuts in the system settings, the extension worked - but then the media keys don't work for other apps!

gmelikov commented 5 years ago

@jversusk unfortunately you can use global hotkeys only in one app at the same time.

jversusk commented 5 years ago

@gmelikov I didn't mean at the same time.

carlin-q-scott commented 5 years ago

I believe Firefox is listening to the key events rather than media events so it's not going to work the way you want it to. I'm not sure if I will be able to get them to switch either.