Solved Idle time ignores video playback?
#1
Hello,

I use xbmc.getGlobalIdleTime() in a python addon https://github.com/cogano/service.xbmc.c...default.py (see line 115) and wonder why it reports non-zero values when either music or video playback is running. Basically, it gets reset to zero only when I touch the keyboard or mouse.

Is this an expected behaviour of the function? (If so, I would have to use further checks for playback.)

Apart from this add-on, mythtv pvr and youtube video plugin and a few keymaps redefinition (for volume up/down and shutdown), I run a default installation on mythbuntu 14.04 (+ updates) and xbmc ppa (version 2:13.2~git20140817).
Reply
#2
Sad 
Hm, I checked the xbmc/Application.cpp and it reads:

Code:
// Global Idle Time in Seconds
// idle time will be resetet if on any OnKey()
// int return: system Idle time in seconds! 0 is no idle!
int CApplication::GlobalIdleTime()

Too bad, it seems I will have to iterate all the "idle time shutdown" code of XBMC in my addon plugin or modify the XBMC code to run an external script instead of shutting down.
Reply

Logout Mark Read Team Forum Stats Members Help
Idle time ignores video playback?0