Search code examples
jplayer

How do I change the order of jPlayer playlist without affecting playback?


Setting a new playlist object causes my jPlayer to stop playing music. I have also tried to re-order the playlist array but it seems jPlayer keeps two arrays (current and original) and it doesn't seem to correct its play index. Meaning that if you change the array in JavaScript, the playlist will no longer behave correctly.

Is there a way to change the playlist's order of items without resetting the playlist object?


Solution

  • I've written a fork of jPlayer 2.9.2 that enables sortable playlists without it affecting playback functionality.

    jQuery UI Sortable support for jPlayer Playlists add-on