Kodi Community Forum
v18 How to request the pause state of kodi? - 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: v18 How to request the pause state of kodi? (/showthread.php?tid=365285)



How to request the pause state of kodi? - Mannshoch - 2021-11-02

I try to get the current pause and screensaver state. Because I'm not able to understand the use of JSON-RPC_API. I searched in internet.
Any idea how to repair the request correct?

javascript:

{
"jsonrpc": "2.0",
"method": "Application.GetProperties",
"params": {
  "properties": ["PlayPause"]
   },
"id": 1
}
Output: Invalid params.

javascript:

{
"jsonrpc":"2.0",
"id":1,
"method":"xbmc.getCondVisibility",
"params":{
  "properties":["System.ScreenSaverActive",]
  },
}
Output: invalid Methods