Skip to content

docs(api): note that shuffle_context before play starts on a random track#314

Merged
devgianlu merged 1 commit into
devgianlu:masterfrom
JRpersonal:docs/shuffle-context-before-play
Jun 5, 2026
Merged

docs(api): note that shuffle_context before play starts on a random track#314
devgianlu merged 1 commit into
devgianlu:masterfrom
JRpersonal:docs/shuffle-context-before-play

Conversation

@JRpersonal

Copy link
Copy Markdown
Contributor

What

The HTTP API spec does not describe how to start a context shuffled (i.e. on a random first track). This adds that note to /player/play and /player/shuffle_context.

Observed behaviour

  • POST /player/play {uri} alone starts on the context's first track.
  • POST /player/shuffle_context {shuffle_context: true} after play only randomizes the upcoming queue; the current track stays the first one.
  • POST /player/shuffle_context {shuffle_context: true} before POST /player/play {uri} starts playback on a random track of the context.

Verified at runtime (armv7l): three consecutive shuffle_context-then-play calls each started on a different track.

Change

Docs only: extends the description of /player/play and /player/shuffle_context in api-spec.yml. No code changes.

…rack

The HTTP API did not document how to start a context shuffled (on a random
first track). Document it on /player/play and /player/shuffle_context:
enabling shuffle_context before /player/play starts playback on a random
track, while enabling it after play only reshuffles the upcoming queue and
keeps the current (first) track.

Verified at runtime: three consecutive shuffle_context-then-play calls each
started on a different track.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@devgianlu devgianlu merged commit 40ffa1f into devgianlu:master Jun 5, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants