paracusia v0.2.1 Paracusia.MpdClient.Status
Functions related to the current status, e.g. volume, if playback is paused or stopped etc.
See also: https://musicpd.org/doc/protocol/command_reference.html#status_commands Note that the MPD protocol specification also contains the “idle” and “clearerror” commands, which are not found in this module. This is because status updates (using the idle command) as well as error handling is done by Paracusia, hence the user need not use those commands explicitly.
Summary
Functions
Returns a map containing info about the current song
Returns statistics
Returns the current status of the player
Functions
Returns a map containing info about the current song.
stats()
stats :: {:ok, %Paracusia.PlayerState.Stats{albums: term, artists: term, db_playtime: term, db_update: term, playtime: term, songs: term, uptime: term}} | Paracusia.MpdTypes.mpd_error
Returns statistics.
status()
status :: {:ok, %Paracusia.PlayerState.Status{audio: term, bitrate: term, consume: term, elapsed: term, error: term, mixrampdb: term, mixrampdelay: term, next_song_id: term, next_song_pos: term, playlist: term, playlist_length: term, random: term, repeat: term, single: term, song_id: term, song_pos: term, state: term, time: term, timestamp: term, updating_db: term, volume: term, xfade: term}} | Paracusia.MpdTypes.mpd_error
Returns the current status of the player.