Rocksky.Player (Rocksky v0.1.0)

Copy Markdown View Source

app.rocksky.player.* endpoints — remote control of a Rocksky player.

Summary

Functions

Append items to the queue. Params: :playerId, :items, :position, :shuffle.

Currently playing track. Params: :playerId, :actor.

Playback queue. Params: :playerId.

Skip to next track. Params: :playerId.

Pause playback. Params: :playerId.

Resume playback. Params: :playerId.

Play a directory. Params: :playerId, :directoryId, :shuffle, :recurse, :position.

Play a single file. Params: :playerId, :fileId.

Go to previous track. Params: :playerId.

Seek to position (ms). Params: :playerId, :position.

Functions

add_items_to_queue(client, params \\ [])

Append items to the queue. Params: :playerId, :items, :position, :shuffle.

get_currently_playing(client, params \\ [])

Currently playing track. Params: :playerId, :actor.

get_playback_queue(client, params \\ [])

Playback queue. Params: :playerId.

next(client, params \\ [])

Skip to next track. Params: :playerId.

pause(client, params \\ [])

Pause playback. Params: :playerId.

play(client, params \\ [])

Resume playback. Params: :playerId.

play_directory(client, params \\ [])

Play a directory. Params: :playerId, :directoryId, :shuffle, :recurse, :position.

play_file(client, params \\ [])

Play a single file. Params: :playerId, :fileId.

previous(client, params \\ [])

Go to previous track. Params: :playerId.

seek(client, params \\ [])

Seek to position (ms). Params: :playerId, :position.