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
KentL
Level 7

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
Highlighted
TheEndless
Level 7

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
Highlighted
Roku Employee
Roku Employee

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
Highlighted
KentL
Level 7

Re: How to refresh screens

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