[Cast] Support shuffle mode
@tanay187 is already working on this.
Since Aug 14, 2026.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.