Huge props to Oblikoamorale for putting this plug-in together!
2 things:
1: when browsing over the network and selecting a networked computer, the JSON formatted string that is returned by PATH_JS dosen't seem to encode the cmd value for 'Network:\' so it escapes the following quote during eval:
{
"path": [ { "cmd": "%20", "path": "Root:\\" }, { "cmd": "Network:\", "path": "Network:\\" }, { "cmd": "%5C%5CMONKEY-BRAIN%5C", "path": "\\\\MONKEY-BRAIN\\" } ],
"parent": "Network%3A%5C",
"browser": [ { "p": "\\\\MONKEY-BRAIN\\Albums\\", "pu": "%5C%5CMONKEY-BRAIN%5CAlbums%5C", "fs": "", "cm": "", "ft": "" } ]
}
I'm currently replacing the text before running eval right now.
2: I'm using AJAX and I'd like to be able to highlight the active track in the playlist on page load. Is there any way to tell what the current track is on page load. After sending a Start or PlayOrPause command PLAYLIST_ITEM_PLAYING returns the index of the track but I can't find a way to get it returned without actually starting playback.
Thanks for any help. Props again, your plug-in kicks ass!
Dave