INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: MCWS Automatic notifications  (Read 2010 times)

bdgarcia

  • Recent member
  • *
  • Posts: 9
MCWS Automatic notifications
« on: September 16, 2011, 10:22:07 pm »

Does MCWS offer any method to proactively notify when a new album or track starts playing?
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42441
  • Shoes gone again!
Re: MCWS Automatic notifications
« Reply #1 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.
Logged
Matt Ashland, JRiver Media Center

bdgarcia

  • Recent member
  • *
  • Posts: 9
Re: MCWS Automatic notifications
« Reply #2 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
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42441
  • Shoes gone again!
Re: MCWS Automatic notifications
« Reply #3 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.
Logged
Matt Ashland, JRiver Media Center

bdgarcia

  • Recent member
  • *
  • Posts: 9
Re: MCWS Automatic notifications
« Reply #4 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
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42441
  • Shoes gone again!
Re: MCWS Automatic notifications
« Reply #5 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.
Logged
Matt Ashland, JRiver Media Center
Pages: [1]   Go Up