Liking cljdoc? Tell your friends :D

Examples

Each file is a runnable Clojure script. They share example_client.clj, which builds a RockboxClient honouring ROCKBOX_HOST / ROCKBOX_PORT env vars.

# From sdk/clojure
clj -M:examples -m ex01-basic-playback
clj -M:examples -m ex03-library-search "pink floyd"
ROCKBOX_HOST=192.168.1.42 clj -M:examples -m ex02-now-playing
FileWhat it shows
ex01_basic_playback.cljPause / seek / resume in one threading-macro chain
ex02_now_playing.cljPretty-print the currently playing track
ex03_library_search.cljSearch → play first matching album shuffled
ex04_queue_management.cljInspect and modify the live queue
ex05_realtime_events.cljWebSocket events with the callback API
ex06_core_async_events.cljSame events, consumed via core.async channels
ex07_volume_eq.cljAdjust volume + write a 5-band EQ preset
ex08_browse_filesystem.cljWalk music_dir (directories vs files)
ex09_plugin_scrobbler.cljToy "scrobbler" plugin via use-plugin / event hook
ex10_smart_playlist.cljCreate a smart playlist from a Clojure data rule-set

rockboxd must be running locally (or specify ROCKBOX_HOST) before the examples can connect.

Can you improve this documentation?Edit on GitHub

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close