Forum Discussion
gonzotek
13 years agoVisitor
"dustinhood" wrote:
Does the END statement still apply to devices with newer firmware (4.8-5)? I cannot forcibly make a channel exit with a Roku 3 running 5.0.7070
I need the channel to exit once the device is no longer linked to an account.
If nothing else works, you can send yourself a keypress/Home ECP command.
Credits to renojim for the brightscript code: viewtopic.php?f=34&t=55236#p375957
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/Home"
xfer.SetUrl(url)
xfer.PostFromString("")