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: 
krh5150
Visitor

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 1
RokuJoel
Binge Watcher

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