Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
btpoole
Channel Surfer

Home Button Exit

From what I can tell the Home button does not have an index number. How is it possible to execute code if the user presses the Home button. For example, I have a server side script that is executing during the channel play. If the user press the back button or the up button, I have the isRemoteKeyPress set to kill the script and temp files on the server are deleted. No problem. But if the user presses the Home button to exit there is no way to kill the script or delete temp files. Or is there?
0 Kudos
1 REPLY 1
RokuChris
Roku Employee
Roku Employee

Re: Home Button Exit

"btpoole" wrote:
From what I can tell the Home button does not have an index number. How is it possible to execute code if the user presses the Home button. For example, I have a server side script that is executing during the channel play. If the user press the back button or the up button, I have the isRemoteKeyPress set to kill the script and temp files on the server are deleted. No problem. But if the user presses the Home button to exit there is no way to kill the script or delete temp files. Or is there?


There isn't. HOME is always intercepted by the firmware and always exits the current channel immediately.

http://sdkdocs.roku.com/display/sdkdoc/ ... -LevelMenu
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.