How to show overlay graphics with an Add-on
#1
Hi folks,

I like to watch sports with KODI. But some TV channels have annoying tickers on the bottom - and I hate these flickering tickers Wink

I hacked a Perl script showing a black bar overlay graphics to hide this, using a low level keyboard event watcher to catch the IR remote signals and so on. Works Ok with KODI in standalone mode, but is quite hacky and doesn't work when running full screen in a normal X session.

I thought there must be a better way of doing this in KODI and played around at skin level with defining a custom window, but that catches all input and I can't seek in the video using my IR remote without closing the window again.

So it's probably better to code an Add-on for this purpose? (which then could have some more options e.g. to resize/move the black bar...).

From crawling the docs I couldn't get a clue how to show an overlay, which doesn't affect navigation / event grabbing etc.

Does someone has a helpful pointer for me?

Thanks!
Reply
#2
Yes. This is possible.

Funnily enough, I've actually been using this method for the opposite reason - I wanted to display a ticker on the screen!

Have a look at this thread for starters: http://forum.kodi.tv/showthread.php?tid=212811

My current implementation of it is here:
https://github.com/elParaguayo/service.b.../helper.py
and
https://github.com/elParaguayo/service.b.../ticker.py

You'll need to change the control that you add to the screen, but this should (hopefully) be plenty to get you started.

Come back if you get stuck. Good luck!
BBC Live Football Scores: Football scores notifications service.
script.squeezeinfo: shows what's playing on your Logitech Media Server
Reply
#3
Great! Thanks for sharing this. I'll report my progress - or ask questions Wink - here.
Reply

Logout Mark Read Team Forum Stats Members Help
How to show overlay graphics with an Add-on0