feat: control playback through MPRIS

Remus owns org.mpris.MediaPlayer2.remus on the session bus and serves
the root and player interfaces: play, pause, play-pause, stop, next,
previous and quit, with the playback status, track metadata, position
and volume. Desktops route media keys to the active MPRIS player, and
headphone buttons arrive as media keys, so this is how they reach remus.

Reading the headphones' input devices directly was ruled out: keyboard
type devices, AVRCP included, are root:input, and only gamepads are
opened up to the logged-in user. Seeking is not offered (CanSeek false).

The Flatpak gets --own-name for the bus name.
This commit is contained in:
Ansho Rei
2026-11-04 17:57:32 +01:00
parent ab42814302
commit 0bcba21f1a
8 changed files with 439 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "remus"
version = "0.6.8"
version = "0.7.0"
edition = "2024"
license = "MIT"