INTERACT FORUM

Windows => Plug-in Development => Topic started by: bdgarcia on September 16, 2011, 10:22:07 pm

Title: MCWS Automatic notifications
Post 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?
Title: Re: MCWS Automatic notifications
Post by: Matt on September 16, 2011, 10:57:30 pm
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.
Title: Re: MCWS Automatic notifications
Post by: bdgarcia on September 17, 2011, 09:28:35 am
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
Title: Re: MCWS Automatic notifications
Post by: Matt on September 17, 2011, 10:10:44 am
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.
Title: Re: MCWS Automatic notifications
Post by: bdgarcia on October 02, 2011, 10:21:38 pm
Matt,

Do you have any sample code on registering for event notifications from DLNA?    I know it is a UDP based protocol.

Thx
Bryan
Title: Re: MCWS Automatic notifications
Post by: Matt on October 13, 2011, 07:52:33 pm
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.