Forum Discussion

fyb3roptik's avatar
fyb3roptik
Roku Guru
3 years ago
Solved

Pressing Home button while watching video is not firing state change

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!

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

5 Replies

  • renojim's avatar
    renojim
    Community Streaming Expert

    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.

    • fyb3roptik's avatar
      fyb3roptik
      Roku Guru

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

      • renojim's avatar
        renojim
        Community Streaming Expert

        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.