Giter Site home page Giter Site logo

mpv-mpris's Introduction

mpv-mpris

mpv-mpris is a plugin for mpv which allows control of the player using standard media keys.

This plugin implements the MPRIS D-Bus interface and can be controlled using tools such as playerctl or through many open source desktop environments, such as GNOME and KDE.

Compatibility

This plugin requires mpv to be built with --enable-cplugins (default as of mpv 0.26) and to be built with Lua support (to enable loading scripts).

Loading

mpv will automatically load the plugin from the following directories:

  • /etc/mpv/scripts: for all users
  • ~/.config/mpv/scripts: for current user

mpv can also manually load the plugin from other directories:

mpv --script=/path/to/mpris.so video.mp4

Install

Packages are available for many distributions.

For 64-bit x86 Linux a pre-built version is available here and can be copied into one of the mpv scripts directories documented above.

A self-built mpris.so file can be installed with make install and will be installed to the appropriate mpv scripts directory for your current user or to the mpv system wide scripts directory for all users when you install as root.

Build

Build requirements:

  • C99 compiler (gcc or clang)
  • pkg-config
  • mpv development files
  • glib development files
  • gio development files

Building should be as simple as running make in the source code directory.

D-Bus interfaces

Implemented:

  • org.mpris.MediaPlayer2
  • org.mpris.MediaPlayer2.Player

Not implemented:

  • org.mpris.MediaPlayer2.TrackList
  • org.mpris.MediaPlayer2.Playlists

mpv-mpris's People

Contributors

acrisci avatar doronbehar avatar duxks avatar heirecka avatar hoyon avatar lgbaldoni avatar millak avatar olifre avatar pabs3 avatar pauloo27 avatar stratusfearme21 avatar

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.