[Solved] How to save current playing song in cookie?
myPlayer.play() expects an integer value, but when you read from the cookie you get a string. So to fix your problem, just pass the value through parseInt(), like this: myPlayer.play(parseInt(playnow)); You will notice that on page reload, the proper track will be selected in the playlist as it starts playing, and it will continue to … Read more