Home

Awesome

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:

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:

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

Test

Test requirements:

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

The stderr of the tests will be empty unless there are mpv/etc issues.

The tests accept these environment variables as parameters:

These parameters are useful for running the tests in alternate test scenarios.

D-Bus interfaces

Implemented:

Not implemented: