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: 
tfanslau
Reel Rookie

Return to main screen when video is done.

I created a simple Roku Channel (SDK).  I currently only have one video on the channel and it works fine except for when it ends, it just pauses on the final frame.  I would prefer that it goes back to the main page of the channel.  I've searched quite a bit with no luck.  Can anyone help?  Thanks in advance.

0 Kudos
2 REPLIES 2
renojim
Community Streaming Expert

Re: Return to main screen when video is done.

You have to set up an observer on "video_state" and monitor for "finished".  Then change the visibility on your video screen and your "main page" screen.

Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
0 Kudos
tfanslau
Reel Rookie

Re: Return to main screen when video is done.

I shall try that and let you know how I make out.  Thank you.

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.