INTERACT FORUM
Windows => Plug-in Development => Topic started by: bdgarcia on September 16, 2011, 10:22:07 pm
-
Does MCWS offer any method to proactively notify when a new album or track starts playing?
-
You'll have to poll, using something like MCWS/v1/Playback/Info
I would think for an MCWS server to event would require it talking to some sort of callback address to the client, and I'm not really sure how that would work.
-
Matt,
Thank you. I believe XBMC does this type of eventing via UDP messages. It could also be something where you provide an HTTP Get / Post to the client, and the client has to provide HTTP server functionality if they want to receive messages. I can build my own plugin I guess to do this, I have not researched this though. Do you know if the internal API provides some type of eventing that a plug in can receive for these types of events?
Thx
Bryan
-
Other options include:
You can subscribe for DLNA events from Media Center if you're on the same subnet.
You can catch system-wide broadcasts of MCC notifications for track changes if you're on the same machine.
You can catch notifications through the COM automation interface.
-
Matt,
Do you have any sample code on registering for event notifications from DLNA? I know it is a UDP based protocol.
Thx
Bryan
-
No, sorry. DLNA is pretty complicated, so you'd probably have to find a DLNA stack.
Broadcasting events on a local UDP port is something we'll consider for MCWS in the future.