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: 
fyb3roptik
Roku Guru

Pressing Home button while watching video is not firing state change

Jump to solution

When watching a video I get all of the state changes, however pressing the home button does not fire any state change. This should fire a stop event so that tasks can be run properly before channel exit!

0 Kudos
1 Solution

Accepted Solutions
fyb3roptik
Roku Guru

Re: Pressing Home button while watching video is not firing state change

Jump to solution

I got around this actually by utilizing websockets. I am able to see when a client disconnects. Hope this helps someone!

View solution in original post

0 Kudos
5 REPLIES 5
renojim
Community Streaming Expert

Re: Pressing Home button while watching video is not firing state change

Jump to solution

It's been like that for a long time. Pressing Home is like pressing the reset button. You better be prepared for the rug getting pulled out from under you at any moment.

Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
0 Kudos
fyb3roptik
Roku Guru

Re: Pressing Home button while watching video is not firing state change

Jump to solution

There should be some sort of "Pressed home run these tasks before exit" like any other OS...

0 Kudos
renojim
Community Streaming Expert

Re: Pressing Home button while watching video is not firing state change

Jump to solution

Agreed, but when this behavior first appeared many years ago (it wasn't always that way) any discussion about what should happen fell on deaf ears.

Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
0 Kudos
fyb3roptik
Roku Guru

Re: Pressing Home button while watching video is not firing state change

Jump to solution

I got around this actually by utilizing websockets. I am able to see when a client disconnects. Hope this helps someone!

0 Kudos
sjb64
Roku Guru

Re: Pressing Home button while watching video is not firing state change

Jump to solution

This is very intentional by Roku and they've made it clear it isn't changing.  The Home button is a nuke, and they are not allowing any app room to interfere, delay, or prevent it.  You program is simply done, with no notice.  It is to enforce a behavior the end user can rely on, that Home gets them back to the main menu, completely reliable, with no exceptions or surprises.

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.