Giter Site home page Giter Site logo

browser-mpris2's Introduction

browser-mpris2

Implements the MPRIS2 interface for Chrome and Firefox.

Currently, the following sites are supported with almost all of the capabilities MPRIS2 allows:

Pull requests are welcome.

Installation (for Chrome)

  1. First, in Chrome, go to Tools > Extensions (or chrome://extensions), enable Developer mode and Load unpacked extension... with the root of this repo. Notice, the extension ID.
  2. Next, place chrome-mpris2 somewhere in your $PATH and run install-chrome.py giving it the extension ID and optionally the path (not just the directory) of your just-installed chrome-mpris2 (defaults to ~/bin/chrome-mpris2). This will check that you have all the dependencies and tell Chrome about chrome-mpris2 (so that the plugin can use it).
  3. ???
  4. Profit

If on GNOME or similar you should be able to take advantage of your new powers immediately. Otherwise, you can use something like playerctl, perhaps bind it to a key or XF86AudioPlay and the like if your keyboard has them.

Similar Projects

  • plasma-browser-integration It's more general as it works on <audio> and <video> elements, though it misses out on some of the more "advanced" capabilities, such as cover art support.
  • shwsh/web-mpris2 A port of this extension to Tampermonkey/Greasemonkey (and WebSockets).

TODO

  • Support the (supposedly experimental) Media Session API that sites can use to set metadata. plasma-browser-integration uses where available.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.