mark f wrote: > I've been working on (writing/debugging/redefining/repeat) an LMS remote > control UI for a long time. I have read and re-read the Help > > Technical Information > Command Line Interface stuff about listen and > notification subscriptions many many times. I would like the UI to be > notified when a player is turned off. This seems like such a basic > thing that I MUST be missing something obvious. Could someone please > point me to the subscription I need to use to be notified about a "power > on/off" event of a player? > > Right now I poll the server often to keep the interface up to date. I'd > like it to be more event driven. > > Thank you.
MaterialSkin uses cometd to receive notifications from LMS. One of the channels is 'serverstatus' and this lists the power state of players. See https://github.com/CDrummond/lms-material/blob/master/MaterialSkin/HTML/material/html/js/server.js from more details. *Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json (Use http: //SERVER:9000/material/?debug=json,cometd to also see update messages, e.g. play queue) 2. Open browser's developer tools 3. Open console tab in developer tools 4. REQ/RESP messages sent to/from LMS will be logged here. ------------------------------------------------------------------------ cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686 View this thread: http://forums.slimdevices.com/showthread.php?t=115326 _______________________________________________ Squeezecenter mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/squeezecenter
