Hello Peter,
jPlayer deals with the audio and helps with the standard controls like
play, pause, and the volume.
You question is more to do with the demo 2 playlist demo code. In our
example, we give a single playlist. How you go about implementing
multiple playlists has many solutions, depending on what you want to
achieve.
For example, 1 solution that springs to mind is that you have 3
different myPlayList objects. ie., Crudely you could use: myPlayList1,
myPlayList2 and myPlayList3. Then when you switch between the
playlists, you set myPlayList to equal the selected playlist, 1 2 or
3. You would then reset the playItem, which selects the 1st track in
the playlist and finally refresh the playlist display using the
function already there, displayPlayList().
You could do your suggestion, but I think it might be a bit
complicated for your 1st go at a solution. Especially since you state
you are not that experienced. Basically though, to minimise the effort
you could have a masterPlaylist that contains everything... Then when
you initialize or change the playlist, you run a search through the
playlist and put the results into myPlaylist. You would then reset
playItem to zero and use displayPlayList() again to refresh the
display.
My suggestions have revolved around using the existing demo 2 code and
adding a bit on to perform your functionality.
Let us know how you get on.
If you require some extra guidance as you develop this project, them
please remember to post your project online somewhere and give us the
link. Wading through 1000 lines of code in an email is a gruelling
affair.
Best regards,
Mark P.