jsmnbom / mpris-integration

Adds mpris integration for certain sites using a Firefox Webextension.
https://addons.mozilla.org/en-US/firefox/addon/mpris-integration/
MIT License
29 stars 10 forks source link

Does not work #5

Open TomaszGasior opened 5 years ago

TomaszGasior commented 5 years ago

If I have disabled autoplay for youtube.com. When I open page of some video on youtube.com, gnome shell shows mpris controls but they does not work. Also, when I start video these controls disappear.

kevinlekiller commented 5 years ago

Works here (Arch, Firefox 69), this is what I did:

mkdir -p ~/.mozilla/native-messaging-hosts

wget -O ~/.mozilla/native-messaging-hosts/mpris_integration_native.json https://github.com/jsmnbom/mpris-integration/raw/master/mpris_integration_native.json

wget -O ~/.mozilla/mpris-integration-native https://github.com/jsmnbom/mpris-integration/releases/download/v0.2/mpris-integration-native

chmod u+x ~/.mozilla/mpris-integration-native

sed -i "s#PATH_TO_NATIVE_BINARY#$(realpath ~/.mozilla/mpris-integration-native)#" ~/.mozilla/native-messaging-hosts/mpris_integration_native.json

Alternatively you can use (if you use KDE) https://community.kde.org/Plasma/Browser_Integration

compiaffe commented 4 years ago

@kevinlekiller I suspect there is a typo in the paths you shared: i.e.

mkdir -p ~/.mozilla/native-messaing-hosts -> mkdir -p ~/.mozilla/native-messaging-hosts

kevinlekiller commented 4 years ago

Thanks fixed.

x-user commented 4 years ago

Also not working. Process started, but controls disappeared after video start. Screenshot from 2019-11-25 15-21-03 PS: binary compiled from GH master.