I am using jPlayer plugin. Here is an example link [ jsfiddle ].
I save the current playing track number in a cookie. After a browser reload it starts playing from the track number loaded from the cookie. This works but the problem is, after the current track ends, it starts to play from the first track of the playlist. I want it to continue to the next track.
Example of current situation:
- playlist have 10 songs
- clicked on number 3 song
- cookie saved number 3 song
- browser reload
- start playing number 3 song from playlist
- number 3 song ends
- start playing from number 1 song
Desired situation:
- playlist have 10 songs
- clicked on number 3 song
- cookie saved number 3 song
- browser reload
- start playing number 3 song from playlist
- number 3 song ends
- start playing number 4 song
- number 4 song ends
- start playing number 5 song
- ...