phosphor-service-mpris

MPRIS2 media-player discovery, status, and transport control.

Watches the session bus for MPRIS2 players, surfaces their identity, track metadata, and playback state, and forwards transport controls. Player discovery follows NameOwnerChanged, property updates ride PropertiesChanged, and every fetch goes through a pending-call watcher so the GUI thread never blocks on a slow player. A shell binds the MprisPlayerModel to render a now-playing card or media pop-out and calls the per-player transport invokables.

Full API →

Key types

MprisHost
Watches the bus for org.mpris.MediaPlayer2.*, owns the live player set, emits add/remove.
MprisPlayer
One player: identity, metadata, state, position, and play/pause/next/seek invokables.
MprisPlayerModel
QAbstractListModel over the host with identity / state / title / artist / art roles.

Dependencies

See also

References