Kodi Community Forum
Little bit of dev help - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Video Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=154)
+---- Thread: Little bit of dev help (/showthread.php?tid=180594)



Little bit of dev help - Bronston - 2013-12-17

I'm trying to code an add-on that will output the aspect ratio of a video over udp as soon as the user starts a video, possibly with a slight delay before the video starts. Can someone point me in the right direction please? It will be talking to an ardunio from there.

Thanks
Bronston


RE: Little bit of dev help - Bronston - 2013-12-17

I guess it doesn't have to be UDP, it could output just about any way and I can take it from there.


RE: Little bit of dev help - bossanova808 - 2013-12-18

Download a similar addon to get started - basically you need a listener that listens for play events, grab the appropriate info you need (e.g. via xbmc's json interface) - then send it out to your arduino however you like.

This is a relatively simply service addon that should prove a decent template:
http://wiki.xbmc.org/index.php?title=Add-on:XBMC_Unpause_Jumpback


RE: Little bit of dev help - Bronston - 2013-12-21

Excellent, thank you very much for the help. I'll post back on here if I have trouble.

Bronston