Kodi Community Forum
Controlling video settings via JSON-RPC - 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: Controlling video settings via JSON-RPC (/showthread.php?tid=332996)



Controlling video settings via JSON-RPC - Huffy - 2018-06-20

Hello,

I am trying to automatically shift the image down to put the black bars into the masked area of my screen. I thought I could do it with the JSON-RPC interface but it seems this function is not implemented.

I played around some with the JSON-RPC interface but could not get the video functions like "Zoom" to work for video, it seems it is not supported:
{"jsonrpc":"2.0","method":"Player.Zoom","params":{"playerid":1,"zoom":2},"id":1}
Result:
{"error":{"code":-32100,"message":"Failed to execute method."},"id":1,"jsonrpc":"2.0"}

{"jsonrpc":"2.0","method":"Player.GetProperties","params":{"playerid":1,"properties":["canzoom","canmove"]},"id":1}
Result:
{"id":1,"jsonrpc":"2.0","result":{"canmove":false,"canzoom":false}}

For the "Vertical shift" setting I cannot find any corresponding method in the API documentation.

--> Have I missed some function or is this not implemented yet?
--> Does anyone have any idea how to get this to work? My next step would be trying to build my own addon.

Thank you very much for any input.


RE: Controlling video settings via JSON-RPC - TimoJ - 2018-12-14

Any news about this? I'd like to control pixel ratio and enable non-linear stretch with a macro. Are there json-rpc functions for this or is sending keystrokes the only option?


Controlling video settings via JSON-RPC - Memphiz - 2019-02-10

Incoming 15477 (PR)


RE: Controlling video settings via JSON-RPC - Huffy - 2019-02-17

Thank you so much for your work Memphiz and DaveTBlake. I really appreciate your effort and I'm looking forward to 18.1/18.2!