I am upgrading my system so that I can see what's playing on my inhouse automation Girder web page, and I want to use the same function in Girder to stop streaming radio playback if anything starts playing in a given zone, which in that case would be from Gizmo or J.Remote. But so far the only working way that I have found to do that is to poll every zone in MC for playback status every x seconds and then send a stop to the streaming radio if status has changed from pause or stop to play in MC. BUt is there something else that I can use there, some kind of "push notification" for playback?
For me it would be more than enough if it was possible to do what another program I'm using, Tune Aero (which streams from any iDevice or Rooted Android or Windows pc with the AirPlay protocol, much better than DLNA since it's possible to stream any actual sound output, not just from a particular player) does after a suggestion from me: When status changes from not streaming to streaming, or vice versa, that runs a batch file defined in the setup. My batch file runs a Girder TCPIP command over the network that tells Girder that streaming has started or stopped. I use that to stop streaming radio, if a station is playing, to pause MC, if that is playing and to turn on the amp in that zone if it's not on. Finally stopping the streaming starts a timer. If nothing else starts playing in the same zone within two minutes (like AirPlay straming again, MC or streaming radio) the amp will be turned off. So is there a configurable push network function within MC that I could use similarly?