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 Linux DEs, such as Gnome and KDE.

Build

If you are using 64bit Linux a pre-built version is available here otherwise you will have to manually 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 cloned directory.

Install

To install either run make install or copy the compiled mpris.so file into one of the following directories:

  • /etc/mpv/scripts
  • ~/.config/mpv/scripts

The plugin can be used without installing by running mpv with the --script flag:

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

Notes

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).

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

hoyon avatar pauloo27 avatar lgbaldoni avatar acrisci avatar doronbehar avatar millak avatar heirecka avatar olifre avatar duxks 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.