Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Level 7

Disable ScreenSaver Options

What kind of options do we have or can we implement to disable the screensaver in our apps?

Thanks
0 Kudos
5 Replies
Highlighted
Level 17

Re: Disable ScreenSaver Options

You can implement your own screensaver within your channel or periodically send key presses via ECP to keep the screensaver from activating.

-JT
0 Kudos
Highlighted
Level 7

Re: Disable ScreenSaver Options

How do I send key presses via ECP in BrightScript?

Thanks

-Brad
0 Kudos
Highlighted
Level 17

Re: Disable ScreenSaver Options

Something like this:
ipaddrs = CreateObject("roDeviceInfo").GetIPAddrs()
if ipaddrs.eth0 <> invalid then
ipaddr = ipaddrs.eth0
end if
if ipaddrs.eth1 <> invalid then
ipaddr = ipaddrs.eth1
end if
xfer = CreateObject("roURLTransfer")
url = "http://"+ipaddr+":8060/keypress/InstantReplay"
xfer.SetUrl(url)
xfer.PostFromString("")

-JT
0 Kudos
Level 7

Re: Disable ScreenSaver Options

Thank you!

-Brad
0 Kudos
Highlighted
Roku Employee
Roku Employee

Re: Disable ScreenSaver Options

Make sure if you are doing something like that, that you manage to refresh every pixel on the screen on a periodic basis so that older Plasma tv's don't suffer from burn-in.

- Joel
0 Kudos