Mpris
signals
changed
: emits on any state change except position changeplayer-changed
:(busName: string)
player-closed
:(busName: string)
player-added
:(busName: string)
properties
players
:Player[]
see belowcacheCoverArt
:boolean
wether to cachetrack-cover-url
, default:true
methods
getPlayer
:(string) => Player
returns Player that has given string in its busName
Player
signals
position
:(position: number)
this is signaled when the position is set explicitlyclosed
properties
bus-name
:string
the dbus name that starts withorg.mpris.MediaPlayer2
name
:string
stripped from busName likespotify
orfirefox
identity
:string
name of the player likeSpotify
orMozilla Firefox
entry
:string
.desktop entry without the extensiontrackid
:string
track-artists
:string[]
list of artiststrack-title
:string
track-album
:string
track-cover-url
:string
url to the cover artcover-path
:string
path to the cached cover artmetadata
:{ [key: string]: unknown }
metadata object, see freedesktop.org for known keysplay-back-status
:"Playing" | "Paused" | "Stopped"
can-go-next
:boolean
can-go-prev
:boolean
can-play
:boolean
shuffle-status
:boolean | null
null if unsupported by the playerloop-status
:"None" | "Track" | "Playlist" | null
null if unsupported by the playervolume
:number
-1 if unsupported by the playerlength
:number
-1 if unsupported by the playerposition
:number
-1 if unsupported by the player
methods
playPause
:() => void
play
:() => void
stop
:() => void
next
:() => void
previous
:() => void
shuffle
:() => void
loop
:() => void