peterw;473742 Wrote: > That last example make me wonder if you've looked at 'KidsPlay' > (http://www.tux.org/~peterw/slim/KidsPlay.html). A player-specific CLI > command like > > > Code: -------------------- > > 04:20:00:12:23:45 playlist clear -------------------- > > > > can be executed in Perl as > > > Code: -------------------- > > $client->execute(['playlist', 'clear']); -------------------- > > > > so KidsPlay does not require you to enter the player MAC -- it's > simply not needed. KidsPlay uses a $client object representing the > player where the button was pressed. In KidsPlay you'd define the > macro as simply "playlist clear". In your case, if you're offering > Jive/Controller options, I'd expect you to execute in the context of > the player that the Controller is currently controlling. > > KidsPlay 2.2.0 and newer also allow you to specify a specific player > if that's what you want, or to specify that a command should be run on > behalf of every player, or every player other than the current one -- > see http://forums.slimdevices.com/showpost.php?p=450640&postcount=8 Yes. Whenever I've asked "how do you get the controlled 'client' of a SBC", I've always been told "there is no interface for that." I got that straight from Dean. I assume it's still true. Anyway, I'll probably keep this simple for now and not try to do any fancy parsing of the cli commands. If folks want to run CLI commands against multiple players, they can include sync commands as part of the cli.
-- gharris999 ------------------------------------------------------------------------ gharris999's Profile: http://forums.slimdevices.com/member.php?userid=115 View this thread: http://forums.slimdevices.com/showthread.php?t=48521 _______________________________________________ plugins mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/plugins
