mpd v0.1.0 Mpd.Status View Source
Represents a server status
Status keys
- partition: the name of the current partition (see Partition commands)
- volume: 0-100 (deprecated: -1 if the volume cannot be determined)
- repeat: 0 or 1
- random: 0 or 1
- single [2]: 0, 1, or oneshot [6]
- consume [2]: 0 or 1
- playlist: 31-bit unsigned integer, the playlist version number
- playlistlength: integer, the length of the playlist
- state: play, stop, or pause
- song: playlist song number of the current song stopped on or playing
- songid: playlist songid of the current song stopped on or playing
- nextsong [2]: playlist song number of the next song to be played
- nextsongid [2]: playlist songid of the next song to be played
- time: total time elapsed (of current playing/paused song) in seconds (deprecated, use elapsed instead)
- elapsed [3]: Total time elapsed within the current song in seconds, but with higher resolution.
- duration [5]: Duration of the current song in seconds.
- bitrate: instantaneous bitrate in kbps
- xfade: crossfade in seconds
- mixrampdb: mixramp threshold in dB
- mixrampdelay: mixrampdelay in seconds
- audio: The format emitted by the decoder plugin during playback, format: samplerate:bits:channels. See Global Audio Format for a detailed explanation.
- updating_db: job id
Link to this section Summary
Functions
Parse MPD output as a status struct
Link to this section Types
Specs
t() :: %Mpd.Status{ audio: term(), bitrate: term(), consume: term(), duration: term(), elapsed: term(), error: term(), mix_ramp_db: term(), mix_ramp_delay: term(), next_song: term(), next_song_id: term(), partition: term(), playlist: term(), playlist_length: term(), random: term(), repeat: term(), single: term(), song: term(), songid: term(), state: term(), time: term(), updating_db: term(), volume: term(), xfade: term() }
Link to this section Functions
Specs
Parse MPD output as a status struct