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

Auto-selecting a category

Using the videoplayer sample code I am trying to figure out how to skip the category screen if there is only one category in the feed. This is a lot like RSS, but it allows us to scale as we add additional categories. Just seems a little silly that we can't jump that first category. Any ideas?

Thanks in advance.
0 Kudos
1 REPLY 1
RokuRobB
Streaming Star

Re: Auto-selecting a category

Assuming that you are able to detect that there is only one category from the XML, simply launch the category poster screen with the single category from the XML structure:

displayCategoryPosterScreen(m.Categories.kids[0])

and don't display the interim categories poster screen.
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.