react-audioplayer
react-audioplayer copied to clipboard
Manipulating the playlist
In my scenario I fave different playlists. My approach is to keep the player mounted and just update the list prop. I expected this to be possible but its not. Issues I ran into:
- Replacing the playlist before first playback: Player starts with the first track of the old list and continues with second of new list.
- Replacing the playlist during playback: Player continues on track
x
of old list. After track end player goes to trackx+1
of new list. - Replace a list of 3 with a list of 2 tracks while track 3 is being played: Player throws exception.
Would love if this scenario gets better support!