-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
Add shuffle and other options to media browser #315
Comments
This is sadly a limitation on home assistant side. Not possible to implement because the media selector doesn't have hooks for shuffle and random songs (for all I know, the documentation is very lacking for this feature). Even then, the shuffle toggle would have to be implemented from the Spotify integration directly, not Spotcast |
@fcusson the Spotify code seems to suggest it's there https://github.com/home-assistant/core/blob/dev/homeassistant/components/spotify/media_player.py#L45 |
@hmmbob the media_player does provide a way to shuffle directly from media_player.spotify, but the media_selector currently doesn't have the button for it. We only have access to Unless I'm missing something in the documentation, but the only hook we have is the Technically, we can modify the method to shuffle the media source, but that would be hardcoded and not something the user can choose. That leaves us with hardconding the shuffle and random_song arguments or calling the service. We must ask ourselves:
The important part to take into account is that we would be forcing this behavior on all the users |
Hmmm, too bad. Saw this in the code, so hoped it would be available for use. I don't think existing behavior should change. |
With mushroom cards it's a little buggy but works. |
I really like that the usage of this integration improved drastically with the new media browser. However, I find myself still using the old
spotcast.start
service because I want to shuffle a playlist. I think if the there was a way to set the "shuffle", "random songs" and other flags through the media browser, the usability would improve even more.The text was updated successfully, but these errors were encountered: