"EnTerr" wrote:"RokuKC" wrote:
https://sdkdocs.roku.com/display/sdkdoc ... PressTime()asVoid
That function was just added to docs 29 April but does not mention firmware version. What fw is it applicable to?
"RokuKC" wrote:"ljunkie" wrote:
1. The roVideoPlayer/roVideoScreen used to reset the idle time every 10 seconds. This no longer happens in 7.1. Can this be corrected?
I can file a report, but it might help to have more information, as I haven't heard of this issue being reported by anyone else.
"RokuKC" wrote:"ljunkie" wrote:
2. Is there a valid way to tell the Roku it's not idle from within a channel. The ECP method was the only way, and as I take it will never work again going forward unless the Roku uses an RFC 1918 IP address. One example to clarify why this is important: A custom slide show written in an roScreen, or even roImageCanvas. Without a way to reset the idle time during playback, the Roku will initialize the the (black) screensaver rendering it useless.
We've documented a function in roAppManager which is UpdateLastKeyPressTime() that can be used to defer the screensaver activation.
Calling this should be preferred over the ECP fake keypress technique.
https://sdkdocs.roku.com/display/sdkdoc ... PressTime()asVoid
"rjdjohnston" wrote:
Anyone have an example implementation of UpdateLastKeyPressTime()?
Thanks
BrightScript Debugger> am = CreateObject("roAppManager")
BrightScript Debugger> di = CreateObject("roDeviceInfo")
BrightScript Debugger> ?di.TimeSinceLastkeyPress()
71
BrightScript Debugger> am.UpdateLastKeyPressTime()
BrightScript Debugger> ?di.TimeSinceLastkeyPress()
0
"EnTerr" wrote:
- How is a non-BrightScript (say Marmalade) app to delay screensaver, given that - well, it has no access to UpdateLastKeyPressTime()?
"EnTerr" wrote:
[list=B:1v4ol5wd]Shutting down ECP server when non-private IP - it does "jack squat" for DMZ Rokus.
"RokuKC" wrote:
I haven't tried it myself, but it appears to me that roAppManager UpdateLastKeyPressTime() should be callable by NDK apps. Does Marmalade not allow full access?
"RokuKC" wrote:
"EnTerr" wrote:ECP rejects requests from non-private request IPs... does that not apply in this situation, even if the Roku itself has a private IP?
[list=B:33oryyvz]Shutting down ECP server when non-private IP - it does "jack squat" for DMZ Rokus.
"EnTerr" wrote:
Not that i know of - http://docs.madewithmarmalade.com/displ ... ctionality says "No" for Roku platform on "Extension Development Kit (EDK)" and "Native toolchain access". And the NDK i have laid my eyes on was something truly vintage - circa 2012-2013. That won't cover these new-fangled features, would it?
"EnTerr" wrote:
Hmmm, if by source IP - it "shoulda" blocked :?:. But if that were indeed the case for years, how come certain someone is able through scanning to identify and interrogate thousands of Roku's on the Net? Current data apparently.
Hi everyone,
Since update to OS 12.0, the ECP commands are not working within the dev app (in-app testing). Response code is now 403 whereas in OS 11.5 and before it was always 200.
'cmd = [ECP command]
'RokuIP = [local IP of Roku device, RFC1918 address]
request = CreateObject("roUrlTransfer")
m.port = createObject("roMessagePort")
request.setMessagePort(m.port)
urlString = "http://" + RokuIP + ":8060/" + cmd
request.SetUrl(urlString)
if request.AsyncGetToString() then
'if request.AsyncPostFromString("") then
msg = m.port.waitMessage(0)
print msg.GetResponseCode()
end if
If instead an ECP command is sent from a local pc, the same Roku device on OS 12.0 executes it and the response code is 200. So definitely this new blocking is affecting the dev app.
>~ curl -w "%{http_code}" -d '' "http://"$RokuIP":8060/"$cmd
200
I have the same problem trying to restart my app so that it takes some configuration changes.