jPlayer with two playlists

391 Views Asked by At

I want to have a jPlayer to play music and be able to select the song to play from 2 different playlists.

One list is in a dropdown within the player UI and it's working fine.

The second list is in a different part of the HTML and I need the player to change the music when the user clicks a song's name in this playlist too.

So basically what I need is the jPlayer instance to be able to listen for events in both playlists, is this possible?

Both playlists include the same tracks, so that won't be a problem.

1

There are 1 best solutions below

2
On

Solved it. Just needed to include both playlists within the same container which is used in the cssSelectorAncestor option when initializing jPlayer.