Forum Discussion

jeremyk's avatar
jeremyk
Visitor
13 years ago

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.

1 Reply

  • RokuRobB's avatar
    RokuRobB
    Streaming Star
    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.