All Projects → carlin-q-scott → Browser Media Keys

carlin-q-scott / Browser Media Keys

Licence: mpl-2.0
Lets you control many web players using the media keys on your keyboard.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Browser Media Keys

Google Music Hotkeys
Browser extension that adds keyboard control to Google / YouTube Music
Stars: ✭ 25 (-80%)
Mutual labels:  keyboard, firefox
Saka Key
A keyboard interface to the web
Stars: ✭ 748 (+498.4%)
Mutual labels:  keyboard, firefox
Kdeconnect Chrome Extension
A browser extension to send pages and content from your browser to connected KDE Connect devices.
Stars: ✭ 124 (-0.8%)
Mutual labels:  dbus, firefox
Vimperator Labs
Vimperator
Stars: ✭ 1,184 (+847.2%)
Mutual labels:  keyboard, firefox
Ng Keyboard Shortcuts
Dead Simple Keyboard Shortcuts Management for Angular
Stars: ✭ 121 (-3.2%)
Mutual labels:  keyboard
Firefox Browser Architecture
Proposals for future Firefox browser architecture
Stars: ✭ 116 (-7.2%)
Mutual labels:  firefox
Web Extension Starter
Typescript, React, Redux, Styled-Component and Webpack based sample extension boilerplate. Runs on Chrome and Firefox. Sample chrome extension.
Stars: ✭ 115 (-8%)
Mutual labels:  firefox
Page Translator
One-click in-line page translation for Firefox
Stars: ✭ 114 (-8.8%)
Mutual labels:  firefox
Swift Selection Search
Swift Selection Search (SSS) is a simple Firefox add-on that lets you quickly search for some text in a page using your favorite search engines.
Stars: ✭ 125 (+0%)
Mutual labels:  firefox
Exoplayerxamarin
Xamarin bindings library for the Google ExoPlayer library
Stars: ✭ 124 (-0.8%)
Mutual labels:  mediaplayer
Ergotravel
A Portable Ergonomic Split Keyboard inspired from the ErgoDox, Let's Split and Minidox
Stars: ✭ 120 (-4%)
Mutual labels:  keyboard
Vertical Tabs Reloaded
Firefox add-on for arranging tabs vertically
Stars: ✭ 115 (-8%)
Mutual labels:  firefox
Https Localhost
HTTPS server running on localhost
Stars: ✭ 122 (-2.4%)
Mutual labels:  firefox
Discord Panel
📊 User friendly dashboard/tool for discord bot developpers to manage servers
Stars: ✭ 116 (-7.2%)
Mutual labels:  firefox
Signal Cli
signal-cli provides an unofficial commandline and dbus interface for signalapp/libsignal-service-java
Stars: ✭ 2,117 (+1593.6%)
Mutual labels:  dbus
Qmlnotify
Awesome notification server in QML
Stars: ✭ 114 (-8.8%)
Mutual labels:  dbus
Librefox
License: Mozilla Public License 2.0
Stars: ✭ 1,574 (+1159.2%)
Mutual labels:  firefox
React Native Emoticons
react native emoticons(表情), including emoji😁
Stars: ✭ 119 (-4.8%)
Mutual labels:  keyboard
Marionette
Selenium alternative for Crystal. Browser manipulation without the Java overhead.
Stars: ✭ 119 (-4.8%)
Mutual labels:  firefox
Newtaboverride
New Tab Override allows you to set the page that shows whenever you open a new tab.
Stars: ✭ 120 (-4%)
Mutual labels:  firefox

Build Status

Linux Windows
Linux Build Status Windows Build Status

NOTE: AFTER 52 VERSION FIREFOX DROPPED LEGACY ADDONS SUPPORT, AND DIDN'T GIVE NEW API TO PROPERLY SUPPORT GLOBAL HOTKEYS! Please see this issue.

Description

Lets you control various media sites using the media keys on your keyboard without having the Firefox window active. Supported Sites: youtube, pandora, spotify, bandcamp, google play, yandex, soundcloud, tidal, deezer, plex, vk and more.

Your media keys should work without the Firefox window active for Linux (w/ Gnome) and Windows but please let us know if this isn't the case by providing us with the version of your operating system, and model of keyboard or laptop you're using.

Please find us on GitHub if you'd like to request features, post issues or contribute to the project.

Supported Sites: youtube, pandora, spotify, bandcamp, google play, yandex, soundcloud, tidal, deezer, plex, vk, subsonic, jamstash, overcast.fm, music.amazon.co.uk, music.amazon.com, di.fm, netflix.com, and tunein.com.

Support on Linux

After v.1.0

Now this add-on uses XCB to capture key presses.

Requirements: libxcb-keysyms library (libxcb-keysyms1 package for deb-based distributives, xcb-util-keysyms for yum-based ones)

If you don't have media keys, you can simulate them by these commands:

xdotool keyup alt keyup super keyup a key XF86AudioPlay - play/pause, where you must add keyup [key] for all keys of your hotkey (this example is for super+alt+a)

xdotool keyup alt keyup super keyup x key XF86AudioNext - Next, example for super+alt+x

xdotool keyup alt keyup super keyup z key XF86AudioPrev - Prev, example for super+alt+z

Before v.0.7.9

This add-on listens for global media key presses on Linux via DBus and as such, requires the glib, gobject and gio shared libraries to be installed and available to Firefox. On Ubuntu, these can all be installed simultaneously by installing the libglib2.0-0 package, if not already installed.

This feature has been tested on Ubuntu 15.04 with Firefox 40.0a2.

Some desktop environments (Xfce, Openbox) uses DBus too, but they can't work with media keys properly. As a workaround, you can use mediakeys-daemon script to make needed DBus service:./mkd.py -d. Additionally you must use any keybinding app your DE have to run mediakeys-daemon script on media key press:

  -p, --play      send play event to all listeners
  -a, --pause     send pause event to all listeners
  -s, --stop      send stop event to all listeners
  -n, --next      send next-track event to all listeners
  -b, --previous  send previous-track event to all listeners

If you don't have media keys and want to use hotkeys, you can use it too.

Development Environment

This add-on utilizes jpm, the Jetpack Manager for Node.js, for building, testing and packaging. npm install will set it up for you provided you use the npm scripts included in package.json or have ./node_modules/.bin in your PATH.

More details about jpm can be found at https://developer.mozilla.org/en-US/Add-ons/SDK/Tools/jpm.

Testing

You must setup the jpm_firefox_binary environment variable and point it to an install of Firefox Nightly, Unbranded, or Developer Edition in order to test add-ons.
https://developer.mozilla.org/en-US/Add-ons/SDK/Tools/jpm#Install_a_different_version_of_Firefox

To run all tests simply use the npm test command.

To start the browser test environment without running tests, use npm run firefox.

Pandora, Youtube and Spotify also can be launched in the test environment. e.g. npm run pandora

To test a media player that requires authentication we recommend using the instructions at https://developer.mozilla.org/en-US/Add-ons/SDK/Tools/jpm#Developing_without_browser_restarts

On Linux you can use dbus-monitor --session to debug DBus work.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].