- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I got around this actually by utilizing websockets. I am able to see when a client disconnects. Hope this helps someone!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Pressing Home button while watching video is not firing state change
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.
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Pressing Home button while watching video is not firing state change
There should be some sort of "Pressed home run these tasks before exit" like any other OS...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Pressing Home button while watching video is not firing state change
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.
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I got around this actually by utilizing websockets. I am able to see when a client disconnects. Hope this helps someone!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Pressing Home button while watching video is not firing state change
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.