"TheEndless" wrote:
Nope. Nothing documented, at least. No idea if there's an undocumented way of getting that information.
"destruk" wrote:
hmm...perhaps you could manually test if there is a screensaver enabled -- ie - have a server send ecp control presses to the roku at a 6, 11+5, and 31+10 minute interval and have the roku reply with how many button presses it received.
If the screensaver is active it will eat one of the button presses. You would need to have your roku channel send a button press notification from the user to the remote server to have correct timing on the server query back to roku. During video playback the screensaver won't turn on (unless it's paused IIRC).
You could prompt the user to tell you if the screensaver is enabled and what the interval is - through a dialog box or something.
"RokuMarkn" wrote:
You could add a private screensaver to your channel, and then you'd know exactly when the screensaver started.
--Mark
"RokuMarkn" wrote:
Ok, if you insist... It's not documented yet but 5.6 and later has ifAppManager::GetScreensaverTimeout(). It returns the number of minutes the screensaver is set to, or zero if it is disabled.
--Mark
"RokuMarkn" wrote:
Ok, if you insist... It's not documented yet but 5.6 and later has ifAppManager::GetScreensaverTimeout(). It returns the number of minutes the screensaver is set to, or zero if it is disabled.
--Mark
"malort" wrote:
I can't find a way to query idle time
"TheEndless" wrote:
In theory, ifDeviceInfo.TimeSinceLastKeypress() should give you the user's idle time, but I've found that it resets randomly (probably not random) during video playback. If you're just using it to determine idle time for screensaver kick in, then that shouldn't be a problem, since the screensaver won't kick in during video playback anyway.
"malort" wrote:
I can't find a way to query idle time