voronianski / soundcloud-audio.js

:musical_note: SoundCloud tracks and playlists with HTML5 Audio API
http://caniuse.com/#feat=audio
284 stars 46 forks source link

Playlist restarts when paused then played #22

Closed ivangreene closed 6 years ago

ivangreene commented 6 years ago

Trying to investigate. Using v 1.2.2 Will update if I make any progress on it.

To reproduce:

  1. Load a playlist, play it
  2. Advance to a song other than the first using player.next()
  3. Pause, then play it again, and it will start from the beginning of the playlist

Expected:

Should retain the position in the playlist after paused/played.

ivangreene commented 6 years ago

I'm going to work on this, trying to decide if this should be the default behavior, if { resume: true } should be passed as an option to .play(), or if there should be an entirely new method .unpause(). Thoughts?