benwiley4000 / cassette

📼 A flexible media player component library for React that requires no up-front config
https://benwiley4000.github.io/cassette/styleguide
MIT License
185 stars 28 forks source link

trackIndex prop for PlayPauseButton #337

Closed benwiley4000 closed 5 years ago

benwiley4000 commented 5 years ago

This optional prop will turn a PlayPauseButton into a control for a specific track in the playlist - it will only display as playing if the selected track is playing, and hitting play will switch to the new track.

Also consider whether it makes more sense for this to be a separate component.

This is useful in a playlist view where we want to see a control for activating each track, and an indication of which one is playing.

benwiley4000 commented 5 years ago

Short interaction spec

Hitting the button will: