Okay, here's what I've got.
I started with this page that I mentioned earlier:
I was able to reload and re-open the main page and still control the player from it.
I made a stripped-down version of the page here:
This can be slow to load the first time. If it doesn't load, try clicking one of the player pop up buttons again.
So far I can see two options for integrating an enqueue option into kPlaylist.
The first is to re-write the code that sends the playlist to the pop-up player page. Instead of parsing the files selected into an xml playlist, you could output them as "addPopupItem" and send them, one by one, to the pop-up window. This would use a similar approach to that in the pages referenced above.
The second is to send the xml playlist to the popped-up player page and have something in the popup page that parses the list and adds the files to the player one by one. This approach means a lot less modification to kPlaylist. However, I haven't figured out how to code it such that it can receive and parse more than one playlist. This page: http://sdfo.org/play/Test/Test.html
(a stripped-down version of this page
) shows how to parse an xml playlist into html. I was able to use code similar to this in build 485 to parse the xml playlist into an html playlist. If you're interested, I replaced my entire kpxspf class with an include file which can be found here: http://sdfo.org/play/Test/kpxspfInclude.zip
(note that the xml entries had to be urlencoded in order for this to work). Using any pre-489 build, replace the entire kpxspf class with "include "kpsxpfInclude.php" to see the effect. I didn't get as far as changing this code to cycle through each entry in the xml playlist and add it to the player, but I'm certain it could be done. So it's really just a matter of figuring out how to send more than one xml list to the popped-up page and have the page able to parse it.
On the whole I favor the second approach. If I can just figure out how to code the html to receive other xml playlists and parse them without refreshing the page, I believe it can be made to work.
What do you think? Am I making any sense at all?