Posts: 48
Joined: Jan 2012
Reputation:
0
Jasp
Junior Member
Posts: 48
What's the easiest way to listen for the end of a song/movie so that the thumbnail can refresh to the new one?
I was going to have javascript pull the either the duration or percentage element and work off that, but the concern would be if the user stopped it in the middle the HA unit wouldn't be able to tell.
I read somewhere that XBMC broadcasts certain functions... Is this correct??
If so, what format are the packets sent in and what port?
Perhaps I can get the HA unit listening on that port and act on that.
Again, If so, what command would I be listening for? Is there a forum page with commands etc?
I want to take the opportunity to thank everyone for their perseverance,
It's never easy with Third-Party devices, especially ones soooo restricted in what code is available.
Thanks,
Jasp
Posts: 794
Joined: Apr 2011
Reputation:
16
Mizaki
Posting Freak
Posts: 794
If you use HTTP you either have to use websockets for notifications or you can poll. Until websockets, polling is how all web interfaces worked. Just request current player and then item. You could probably just query Player.GetItem. The other way which I've not used is TCP on port 9090.