Expand description
mpris
mpris
is an idiomatic library for dealing with MPRIS2-compatible media players over D-Bus.
This would mostly apply to the Linux-ecosystem which is a heavy user of D-Bus.
Getting started
Some hints on how to use this library:
- Look at the examples under
examples/
. - Look at the
PlayerFinder
struct.
Structs
LoopStatus
had an invalid string value.PlaybackStatus
had an invalid string value.A MPRIS-compatible player.
Iterator that blocks forever until the player has an
Event
.Used to find
Player
s running on a D-Bus connection.An iterator that lazily iterates over all of the found
Player
s. Useful for efficiently searching for a specific player.Return value of
ProgressTracker::tick
, which gives details about the latest refresh.Represents the MPRIS
Track_Id
type.Represents a
MediaPlayer2.TrackList
.Enums
Something went wrong when communicating with the D-Bus. This could either be an underlying
D-Bus library problem, or that the other side did not conform to the expected protocols.
Errors that can occur while processing event streams.
This enum encodes possible error cases that could happen when finding players.
A
Player
’s looping status.Holds a dynamically-typed metadata value.
The
Player
’s playback statusErrors that can occur while refreshing progress.
TrackList-related errors.