JSON commands not fully working while picture slidshow is running
#1
Hi

I want to achieve something like:

1. [Execute start script for a service from inside Kodi]

2. The script executes these json actions...

2.1 STOP (just in case anything is playing)
 
Code:
{"params": {"playerid": 0}, "jsonrpc": "2.0", "method": "Player.Stop", "id": "1"}

2.2 Start a slideshow (actually just one picture to show the user kodi is doing something in the background)
Code:
{"params": {"item": {"file": "/home/john/picture.png"}}, "jsonrpc": "2.0", "method": "Player.Open", "id": "1"}

2.3 Go to favourites or main screen/programs (wherever I put the start and end scripts) while keep showing in the background the picture from previous step.

e.g.
Code:
{"params": {"window": "favourites"}, "jsonrpc": "2.0", "method": "GUI.activatewindow", "id": "1"}

This is the step that is not visually working. The screen stays showing the picture with no actions being done althoug I suspect any further step is executed in the background. If I don't start the picture slideshow I can easily cycle between music > videos > music which is what makes me think that eveything is working fine with the exception that the slideshow appears over everything.

2.3 Whenever the user launches the end script, an external closing script for the service will be executed and the photo gallery will be closed.

Does anyone know what's going on? Is there anything wrong in what I'm trying? is simply that the slideshow is not able to work in background mode? Any alternative or suggestion? (maybe a looped video could work as a replacement for the slideshow?)

Regards and thanks in advance.
Reply

Logout Mark Read Team Forum Stats Members Help
JSON commands not fully working while picture slidshow is running0