2015-02-21, 14:50
(2015-02-21, 04:02)Pixxaddict Wrote:(2015-02-20, 12:56)bromix Wrote: Also this will need a service to run all the time, because we need an opened connection/port (UPD mostly) to receive the commands from the server - which will more likely result in a separate addonThis makes sense, but - speaking of me - when I want to watch a video on Youtube, the addon is already open. So the "listening serivce" has to be running only if the addon is in foreground and it is paired with a device.
Technically not possible. Addons (not scripts or services) are only triggered to execute something (mostly one step). This isn't enough to start a service. A service is always running otherwise it isn't a service. The function behind the paring of YouTube is completely different to MTV and NEEDS A PERMANENT CONNECTION TO THE YOUTUBE/GOOGLE SERVER!
Every command you send from your device will run first through the YouTube/Google Server before reaching your HTPC.
I would prefer in your case Yatse....everything else isn't worth the time and effort. The protocol isn't that simple and undocumented, because it's for hardware-manufactures, we only can reverse engineer the protocol - and that's too much to handle.