paracusia v0.2.11 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.
Link to this section Summary
Functions
Returns a map containing info about the current song
Returns statistics
Returns the current status of the player
Link to this section Functions
Link to this function
current_song()
current_song()
current_song() :: {:ok, map()} | Paracusia.MpdTypes.mpd_error()
current_song() :: {:ok, map()} | Paracusia.MpdTypes.mpd_error()
Returns a map containing info about the current song.
Link to this function
stats()
stats()
stats() ::
{:ok, Paracusia.PlayerState.Stats.t()} | Paracusia.MpdTypes.mpd_error()
stats() :: {:ok, Paracusia.PlayerState.Stats.t()} | Paracusia.MpdTypes.mpd_error()
Returns statistics.
Link to this function
status()
status()
status() ::
{:ok, Paracusia.PlayerState.Status.t()} | Paracusia.MpdTypes.mpd_error()
status() :: {:ok, Paracusia.PlayerState.Status.t()} | Paracusia.MpdTypes.mpd_error()
Returns the current status of the player.