Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Level 7

Problem with Home Button and XML

Hi,

I'm having an issue when watching a movie in roVideoScreen. If the user presses the "Home" button while the movie is playing, the XML file (that contains the movie data and start position) gets overwritten with an empty file. If the user backs out of the movie properly and goes back to the roSpringboardScreen, the XML file is updated with the current start position and is correctly saved.

Is there a way to detect the home button (or a way to detect every other event and use an ELSE to not execute the servlet to update the XML) so this issue doesn't occur?

Thanks,
Kevin
0 Kudos
1 Reply
Highlighted
Roku Employee
Roku Employee

Re: Problem with Home Button and XML

If you are trying to save the current position in playback, just save the position every 5 or 10 seconds to the registry or to your server. That way, even if playback is interrupted by the home button, you'll always have a recent saved position.

- Joel
0 Kudos