Open PeterNerlich opened 8 years ago
Sure, that might be useful. Loading is currently somewhat slow, so it'd be nice to load these in the background, but there are a few hardcoded singletons in here which wouldn't work. It'd take some doing to do gapless (or fixed gap) playback, but it would be nice.
Relying on my Request for Events (#22), I have the idea of implementing a playlist. Handy would probably come a
loopsBeforeNext
as well as anextGap
property, holding a number of loops and milliseconds of pause before the playlist continues.A playlist feature would also introduce the following events:
onPlaylistNext
- obvious, when the next song is playedonPlaylistPrevious
- because there could be player controlsonPlaylistLast
- on start of the last song in playlistonPlaylistEnd
- obvious, when playlist ran out