Module mpris

Module mpris 

Source
Expand description

MPRIS2 progress reader.

Polls the freedesktop MPRIS2 D-Bus interface on a background thread so the engine can derive progress from the active media player’s track position (Position / mpris:length) instead of the local preset-display window.

Enabled via the mpris cargo feature; the engine falls back to the local-window computation when the feature is off, when no D-Bus session is reachable, or when no player exposes a non-zero mpris:length.

Structs§

MprisPoller
Background MPRIS2 progress reader.
MprisSnapshot
Snapshot of the currently-active MPRIS player’s track position.

Constants§

DBUS_TIMEOUT 🔒
MPRIS_NAME_PREFIX 🔒
MPRIS_PATH 🔒
MPRIS_PLAYER_IFACE 🔒
POLL_INTERVAL 🔒

Functions§

poll_once 🔒