Kodi Community Forum

Full Version: Display a single image (not a Slideshow!)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

New to KODI/JSON dev. I have some JSON commands working, like starting a slideshow of pix by supplying a directory. but i want to be able to display a single image, too, b/c sometimes i only have one image in a dir (a lot, actually, for a special use case). if i do it the usual way, e.g.:


then it shows the image just fine, but annoyingly, will refresh the image every 10 seconds, or whatever the timeout is. when there are multiple images, it just loops thru them no prob, and that's fine w/me. is there a way to disable this refresh when displaying a single image, via JSON commands? or is there another way to display the single image? btw, I tried "repeat":"off", option, but that was a no go, too.

btw, i did search the forums first, i swear. did not find anything...


Edit: forgot to mention version info:
$ wget -O - -o /dev/null 'http://localhost:8080/jsonrpc?request={"jsonrpc":"2.0","id":"1","method":"JSONRPC.Version"}'
$ egrep -i 'kodi|xbmc' ~/.kodi/temp/kodi.log|head -n2
00:00:19 T:3024949248  NOTICE: Starting Kodi (14.0 Git:Unknown). Platform: Linux ARM 32-bit
00:00:19 T:3024949248  NOTICE: Using Release Kodi x32 build (version for Raspberry Pi)
I used the following command:

wget -O - -o /dev/null 'http://mykodi:8080/jsonrpc?request={"jsonrpc":"2.0","id":"1","method":"Player.Open","params":{"item":{"file":"16071606495310.jpg"}}}