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.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Roku Guru

SG launch screensaver resolved

I'm working on a modified Hero-Grid Example.
I have an animated screen I want to use as a screensaver. I can launch it at the HeroScreen with a remote key, so it works.
Screensavers are launched from the RunScreensaver() function, and adding this to Main.brs does trigger the system screensaver call but I can't find an example of how to run a screen from there. 
I'm under the impression that i should have one scene and many screens. Exception here?

ETA: Going with a new scene seems to work. 
Sub Runscreensaver()

while true

msg=wait(0, m.port)
if msg<>invalid
if msgType="roSGScreenEvent"
  ? "screensaver"
  if msg.isScreenClosed() 
  end if
  end if
end if

end while

end sub
Kinetics Screensavers
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.