Show PNG script
#1
Is it possible to create a script to always show a picture (png/jpg) during full screen playback? Optional to set it's x and y, to show it at a certain position on screen.
Reply
#2
Yes, it is possible. You need to create a service add-on that is launched when Kodi starts. See Wiki for details.
The code for the service add-on will be the following:
import xbmcgui

PHP Code:
import xbmcgui

container 
xbmcgui.Window(12005)
image xbmcgui.ControlImage(1010100100'full path to my image file')
container.addControl(image

First 4 numeric parameters for xbmcgui.ControlImage are X, Y, Width and Height in Coordinate Grid pixels. Change those parameters accordingly to adjust the position and aspect of your image. Note that Kodi Coordinate Grid always have resolution 1280x720 regardless of your actual display resolution or a skin used.

Just to be clear: you can attach any xbmcgui.Control to any Kodi window using the respective Window ID. E.g. I use a similar service add-on to show "elapsed time/total time" info during fullscreen playback on my Android tablet.
Reply

Logout Mark Read Team Forum Stats Members Help
Show PNG script0