Then I would send a "playall" or "addall" command with this id. Neither
"playall" nor "addall" are actually listed in the API documentation, and
I only guessed at the use via looking at the default web UI. So, its
entirely possible that I'm using these incorrectly.
For this new branch, I have changed this. When using these add/play
buttons I now send an add, or play, for each item in turn. So, if you
have a list of 200 items then 200 commands are sent (synchronously, I
await the response of the previous before sending the next). To keep the
UI updating, I ask for a player status every 20th command - otherwise
the queue does not update until the end, and this can be around 8
seconds!
I think there might be another undocumented (and unused in LMS
itself?!?) command which might be helpful for your situation:
playlist playtracks urllist <url1>,<url2>,...
And there's addtracks, deletetracks, inserttracks, too. This command
should allow you to queue up a bunch of tracks in one go.
I might be slightly wrong, just reading code:
https://github.com/Logitech/slimserver/blob/public/8.0/Slim/Control/Commands.pm#L1677
Please give this a try. If it works, then I'll document it :-).
--
Michael
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins