Kodi Community Forum
Retrieve video resolution - 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: Retrieve video resolution (/showthread.php?tid=351401)



Retrieve video resolution - mpg732 - 2020-02-01

I have feedback working from KODI via Json script.  I have looked and can not find if there is a parameter that would retrieve what the current playing video resolution is.  IE 4k vs 1080


RE: Retrieve video resolution - teriyaki - 2020-04-22

You can use {"jsonrpc":"2.0","id":"1","method":"Settings.GetSettingValue","params":{"setting":"videoscreen.resolution"}}' if you can figure out how that translates into which <resolution></resolution> it is in the <resolutions></resolutions> part of guisettings.xml.