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
Community is Temporarily in Read-Only Mode!

We’re upgrading Roku Community to bring you a faster, more mobile-friendly experience. You may notice limited functionality or read-only access during this time. You will not be able to log in or post new comments or kudos during this time. Read more here.

Planned Downtime:
Community will be unavailable for up to 24–48 hours during the upgrade window during the week of May 12 and you may notice reduced functionality. In the meantime, for additional assistance, visit our Support Site.

Thanks for your patience — we’re excited to share what’s next!