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

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!
0 Kudos
3 REPLIES 3
TheEndless
Channel Surfer

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)
0 Kudos
RokuJoel
Binge Watcher

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 ...
0 Kudos
KentL
Visitor

Re: How to refresh screens

Makes perfect sense -- was approaching it incorrectly. Thanks guys, I will use that approach.
0 Kudos