v18 System.IdleTime() is not affected by playback keys - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111) +---- Forum: OS independent / Other (https://forum.kodi.tv/forumdisplay.php?fid=228) +---- Thread: v18 System.IdleTime() is not affected by playback keys (/showthread.php?tid=333872) |
System.IdleTime() is not affected by playback keys - adun79 - 2018-07-21 I use !System.IdleTime(5) in DialogSeekBar.xml, so that it goes away when paused for more than 5 seconds. The problem is that now it doesn't show up when I press play/pause on a keyboard or a remote, unless I have already pressed another key in the previous 5 seconds. If I use the space bar on a regular keyboard, it works. Looking at the logs it seems that pressing the media keys only generates an announcement, but doesn't register it as a user action. Tested with Windows 7 and Android Oreo on Shield Log for Android, remote only: https://pastebin.com/tCmWetrJ Log for Android, keyboard only: https://pastebin.com/ZhKnh1Cf |