Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Cast] Support shuffle mode #2083

Open
MGaetan89 opened this issue Jan 28, 2025 · 0 comments
Open

[Cast] Support shuffle mode #2083

MGaetan89 opened this issue Jan 28, 2025 · 0 comments

Comments

@MGaetan89
Copy link
Contributor

Use case description

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

getShuffleModeEnabled():

@Override
public boolean getShuffleModeEnabled() {
// TODO: Support shuffle mode.
return false;
}

setShuffleModeEnabled(boolean):

@Override
public void setShuffleModeEnabled(boolean shuffleModeEnabled) {
// TODO: Support shuffle mode.
}

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant