gharris999;473746 Wrote: > Thinking about this a little more...I'm not really keeping track of > which client is initiating an action. The requests can come from so > many different locations: a player menu, a controller, the webUI, the > cli... So I can't really depend on there being a 'client' to execute a > given request.
Of those, only the CLI interface cannot tell you the player (assuming your CLI commands don't require a client). As for the Controller, you absolutely can tell which player is being controlled. Look at PowerCenter -- the reason it shows a toast popup when you manually execute a command is that my Jive CLI gets $client from $request and calls the old showBriefly() method of $client. Maybe what Dean said was true at some point, but not any more. At the very least you could let folks type player names like *"Living Room"* instead of *00:04:20:11:22:33*. I also selfishly wish you'd use ";" instead of "&&" so users of your plugin & mine could freely share macros. :-) You never stop improving this plugin, do you? -- peterw http://www.tux.org/~peterw/ free plugins: http://www.tux.org/~peterw/#slim AllQuiet BlankSaver ContextMenu FuzzyTime KidsPlay KitchenTimer PlayLog PowerCenter/BottleRocket SaverSwitcher SettingsManager SleepFade StatusFirst SyncOptions VolumeLock ------------------------------------------------------------------------ peterw's Profile: http://forums.slimdevices.com/member.php?userid=2107 View this thread: http://forums.slimdevices.com/showthread.php?t=48521 _______________________________________________ plugins mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/plugins
