Music image

mpdris2-rs – expose MPD playback through MPRIS2

mpdris2-rs is a lightweight bridge between Music Player Daemon (MPD) and the MPRIS2 D-Bus interface.

It allows desktop components and other MPRIS-aware software to obtain playback state, metadata and queue information from MPD through the standard interface used by Linux media controls. This is useful for integrating an MPD installation with desktop environments and utilities that understand MPRIS but do not communicate with MPD directly. A particularly useful aspect is its handling of artwork. Instead of requiring access to the music library, mpdris2-rs retrieves artwork using MPD’s native readpicture and albumart commands. Consequently, artwork can also be provided when connecting to a remote MPD server or listening to Internet radio.

This is free and open source software.

Key Features

  • Implements the MPRIS2 root interface and player controls.
  • Exposes the current MPD playing queue through track-list support.
  • Connects to MPD using a hostname and port or an absolute UNIX socket.
  • Supports Linux abstract UNIX sockets.
  • Uses the MPD_HOST environment variable when a server is not specified explicitly.
  • Sends desktop notifications, with an option to disable them.
  • Customisable notification summaries and bodies using playback-state and track-metadata placeholders.
  • Configurable notification timeout and minimum interval to help avoid notification throttling.
  • Allows the notification application name and fallback icon to be customised.
  • Obtains the D-Bus session address from DBUS_SESSION_BUS_ADDRESS, with an XDG runtime-directory fallback.
  • Includes a systemd user service for running the bridge automatically.
  • Provides debug output from the command line.

Website: github.com/szclsya/mpdris2-rs
Support:
Developer: Leo Shen
License: GNU General Public License v3.0

mpdris2-rs is written in Rust. Learn Rust with our recommended free books and free tutorials.


Related Software

MPRIS Tools
playerctlMPRIS media player command-line controller
mpris-ctlMinimalistic command-line interface tool for controlling audio players
mpv-mprismpv plugin to control the player using standard media keys
mpd-mprisMPRIS protocol for MPD
mprisenceBridges MPRIS-compatible media players
empressMPRIS media controls made simple
mpris-scrobblerMinimalistic user daemon
MPRIS MiniPlayerDisplays whatever media in a MPRIS compatible player is playing.

Read our verdict in the software roundup.


Best Free and Open Source Software Explore our carefully curated directory of recommended free and open source software, covering every major software category.

The directory forms part of our extensive collection of articles for Linux enthusiasts. It includes hundreds of detailed reviews, together with free and open source alternatives to proprietary software from companies such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

LinuxLinks also covers interesting projects worth exploring, Linux-compatible hardware, free programming books and tutorials, and much more.

Know a useful free and open source Linux application that we haven’t covered? Tell us about it using our submission form.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted