Kodi Community Forum
help with getCondVisibility use - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+--- Thread: help with getCondVisibility use (/showthread.php?tid=81247)



help with getCondVisibility use - jschelling - 2010-09-16

Have a script where I'm trying to see if player is playing (not paused, ffwing, etc).

I tried xbmc.Player().isPlayingVideo() but I take it that returns true as long as a file is loaded, regardless of if player is actually playing the video at that moment.

It seems that I could use xbmc.getCondVisibility('Player.Playing'), however I get the opposite result of what I'm expecting.

Any thoughts on how to successfully implement getCondVisibility - or is there a better way to get the exact state of the player?