KentL
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2014
12:40 PM
How to refresh screens
I am tracking the playback position within a roVideoScreen and POSTing it back to my server. This all works fine.
I use the following navigation path:
roGridScreen --> roPosterScreen (episodes) --> roSpringboardScreen --> roVideoScreen
So when the roVideoScreen closes (due to user navigation or playback completed) I am returned to the roSpringboardScreen. But because it was already on the stack, it does not get refreshed/reloaded and is not aware of the updated playback position.
How can I force a reload of the roSpringboardScreen in this case (so it will populate with updated data)?
Thanks!
I use the following navigation path:
roGridScreen --> roPosterScreen (episodes) --> roSpringboardScreen --> roVideoScreen
So when the roVideoScreen closes (due to user navigation or playback completed) I am returned to the roSpringboardScreen. But because it was already on the stack, it does not get refreshed/reloaded and is not aware of the updated playback position.
How can I force a reload of the roSpringboardScreen in this case (so it will populate with updated data)?
Thanks!
3 REPLIES 3

TheEndless
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2014
01:01 PM
Re: How to refresh screens
You'll need to add refresh code after your call to the roVideoScreen.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)

RokuJoel
Binge Watcher
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2014
03:48 PM
Re: How to refresh screens
so for example:
...
if msg.getindex()=0 then
index=playvideoContent(contentList,index)
ContentList=getContentFromMyServerAgain()
screen.setcontent(content[index])
else if ...
KentL
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2014
10:29 AM
Re: How to refresh screens
Makes perfect sense -- was approaching it incorrectly. Thanks guys, I will use that approach.