Kodi Community Forum
Detect if player is currently playing or paused - 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: Detect if player is currently playing or paused (/showthread.php?tid=198430)



Detect if player is currently playing or paused - User 85563 - 2014-06-22

Hi All,

Sorry if this seems like a daft question but after searching high and low, I can't seem to find a way to detect whether a player is either playing or is paused. Perhaps I'm missing something. Does anyone know if this is possible?

Thanks

Dave


RE: Detect if player is currently playing or paused - syncd - 2014-06-22

Have you looked at Player.GetProperties?

http://wiki.xbmc.org/index.php?title=JSON-RPC_API/v6#Player.GetProperties

It returns the player speed, which can be used to check whether it's playing/paused.


RE: Detect if player is currently playing or paused - User 85563 - 2014-06-22

Ah, great - thanks! Will check it out. Smile