paracusia v0.2.1 Paracusia.DefaultEventHandler

Default event handler for all events received with MPD’s “idle” command.

For some events (player, playlist, mixer, outputs, options, message), the callback is called with the information required to do whatever needs to be done as a result of that event. For instance, when the next song is played, the “player” event is emitted and the corresponding clause is called with the Paracusia.PlayerState, which contains the new song as the value for the key :current_song. For other events, the callback is called only with the event itself, without any additional data structures describing the changed state.

See https://musicpd.org/doc/protocol/command_reference.html#status_commands for more details.

Summary

Functions

start_link()