Kodi Community Forum
Overwritting RPC message - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93)
+---- Forum: JSON-RPC (https://forum.kodi.tv/forumdisplay.php?fid=174)
+---- Thread: Overwritting RPC message (/showthread.php?tid=275572)



Overwritting RPC message - soq2000 - 2016-05-20

Dear all,
I wonder whether I can modify the syntax of return message of a RPC call? For instance, I would like to call Input.ExecuteAction with "screenshot" action, then inside the returned JSON message, I attach the snapshot directly if the capturing operator is sucessful.
Thank you in advance for your instruction
BR


RE: Overwritting RPC message - Montellese - 2016-05-20

Not without changing the code / implementation. But JSON-RPC is not a good protocol for transfering binary data.


RE: Overwritting RPC message - soq2000 - 2016-05-20

Thank you Montellese for the answer.
It was just an example to illustrate my need on exposing some media data of Kodi to the ouside world (other than those of JSON RPC).I would like to exploit the REST service of Kodi to avoid opening a new kind of deamon server listening / connecting to other end of communication.
What can you recommend me to do in the above situation?
Thanks