Transport controls and one-call play helpers.
(-> client
(pb/play-album "album-id" {:shuffle true})
(pb/seek 90000))
Action functions return the client so they compose with ->. Read
functions return data.
Transport controls and one-call play helpers.
(-> client
(pb/play-album "album-id" {:shuffle true})
(pb/seek 90000))
Action functions return the client so they compose with `->`. Read
functions return data.(current-track client)Currently playing track as a kebab-case map, or nil when stopped.
Currently playing track as a kebab-case map, or `nil` when stopped.
(file-position client)Byte offset into the current file.
Byte offset into the current file.
(flush-and-reload client)Force-reload the current queue from disk.
Force-reload the current queue from disk.
(next-track client)Next track in the queue, or nil.
Next track in the queue, or `nil`.
(play client)(play client {:keys [elapsed offset] :or {elapsed 0 offset 0}})Resume playback from queued position. Optional :elapsed and :offset.
Resume playback from queued position. Optional `:elapsed` and `:offset`.
(play-album client album-id)(play-album client album-id opts)Play all tracks from an album. Options: :shuffle (bool), :position (int).
Play all tracks from an album. Options: `:shuffle` (bool), `:position` (int).
(play-all-tracks client)(play-all-tracks client opts)Play the entire library. Almost always used with :shuffle true.
Play the entire library. Almost always used with `:shuffle true`.
(play-artist client artist-id)(play-artist client artist-id opts)Play all tracks by an artist. Options: :shuffle, :position.
Play all tracks by an artist. Options: `:shuffle`, `:position`.
(play-directory client path)(play-directory client path opts)Play every file under a directory. Options: :recurse, :shuffle, :position.
Play every file under a directory. Options: `:recurse`, `:shuffle`, `:position`.
(play-liked-tracks client)(play-liked-tracks client opts)Play every liked track. Options: :shuffle, :position.
Play every liked track. Options: `:shuffle`, `:position`.
(play-playlist client playlist-id)(play-playlist client playlist-id opts)Play a saved playlist by id. Options: :shuffle, :position.
Play a saved playlist by id. Options: `:shuffle`, `:position`.
(play-track client path)Play a single file by absolute path.
Play a single file by absolute path.
(raw-status client)Raw integer playback status (firmware enum).
Raw integer playback status (firmware enum).
(seek client position-ms)Seek to an absolute position in milliseconds.
Seek to an absolute position in milliseconds.
(status client)Playback status as a keyword: :stopped, :playing, :paused.
Playback status as a keyword: `:stopped`, `:playing`, `:paused`.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |