Home Manual Reference Source Test

Typedef

Static Public Summary
public
public

A payload that the native app understands

Static Public

public Metadata: Object source

Properties:

NameTypeAttributeDescription
'mpris:trackid' string
  • optional

the track id (can be anything)

'mpris:length' number
  • optional

the length of the media

'mpris:artUrl' string
  • optional

the url of the cover image

'xesam:url' string
  • optional

the url of the media

'xesam:title' string
  • optional

the title of the media

'xesam:artist' Array<string>
  • optional

an array containing the artists

public Payload: Object source

A payload that the native app understands

Properties:

NameTypeAttributeDescription
PlaybackStatus PlaybackStatus
  • optional

Playing or Paused

LoopStatus LoopStatus
  • optional

the loop status

Shuffle boolean
  • optional

is shuffle on

Volume number
  • optional

the volume

CanGoNext boolean
  • optional

if the next button should be enabled

CanGoPrevious boolean
  • optional

if previous button should be enabled

Identity string
  • optional

the identity of the mpris player

Rate number
  • optional

the playback speed of the media

Metadata Metadata
  • optional

the media specific information