Shuffling Playlist #142
-
I'm working on a project with the player, and want to give users an option to shuffle the playlist that's currently playing. Is there a way to do this with this component, or would I need to create a separate button with some functionality to do so? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hey @jordanwmckee There's no way to do this within the player since it uses the I thought about adding extra buttons, like queue and shuffle, in the UI refactor implemented a few weeks ago. One option would be to accept custom components to use before the previous button or after the next button. |
Beta Was this translation helpful? Give feedback.
-
Hey @jordanwmckee |
Beta Was this translation helpful? Give feedback.
Hey @jordanwmckee
There's no way to do this within the player since it uses the
uris
as the source of truth.I thought about adding extra buttons, like queue and shuffle, in the UI refactor implemented a few weeks ago.
However, that would increase the bundle size and add complications a simple player shouldn't have to handle.
One option would be to accept custom components to use before the previous button or after the next button.
But the previous/next buttons render conditionally depending on the size of
uris
andoffset
, so layout shift could be problematic.