Display a single image (not a Slideshow!)
#1
Hello,

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.:

Code:
http://localhost:8080/jsonrpc?request={"jsonrpc":"2.0","id":"1","method":"Player.Open","params":{"item":{"directory":"/data/images/pic0/"}}}

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...

thanks!

Edit: forgot to mention version info:
Code:
$ wget -O - -o /dev/null 'http://localhost:8080/jsonrpc?request={"jsonrpc":"2.0","id":"1","method":"JSONRPC.Version"}'
{"id":"1","jsonrpc":"2.0","result":{"version":{"major":6,"minor":21,"patch":2}}}
$ 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)
Reply
#2
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"}}}

Asha
Reply

Logout Mark Read Team Forum Stats Members Help
Display a single image (not a Slideshow!)0