krh5150
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2013
09:41 AM
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
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
1 REPLY 1

RokuJoel
Binge Watcher
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2013
12:20 PM
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
- Joel