androidx / androidx/media

[Cast] Support shuffle mode

Open
#2,083 3 comments 0 reactions 2 assignees View on GitHub

@tanay187 is already working on this.

Since Aug 14, 2026.

enhancement needs triage
Dominant language
Java
Stars
3k
Forks
955
Avg merge
12d 14h
Merged PRs (30d)
2

Description

Use case description

Currently (as of version 1.5.1), CastPlayer does not support shuffle mode:

getShuffleModeEnabled():
https://github.com/androidx/media/blob/76088cd6af7f263aba238b7a48d64bd4f060cb8b/libraries/cast/src/main/java/androidx/media3/cast/CastPlayer.java#L629-L633

setShuffleModeEnabled(boolean):
https://github.com/androidx/media/blob/76088cd6af7f263aba238b7a48d64bd4f060cb8b/libraries/cast/src/main/java/androidx/media3/cast/CastPlayer.java#L624-L627

I didn't find any issue/PR open related to this feature. Is there any blocker to support it?

Alternatives considered

We're currently experimenting with our own simple implementation that looks like (we updated the list of available commands):

override fun getShuffleModeEnabled(): Boolean {
    return false
}

override fun setShuffleModeEnabled(shuffleModeEnabled: Boolean) {
    remoteMediaClient?.queueShuffle(null)
}

But we're not sure if that's the way to go.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.