jeremyk
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2012
04:09 PM
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.
Thanks in advance.
1 REPLY 1

RokuRobB
Streaming Star
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2012
01:28 PM
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.
displayCategoryPosterScreen(m.Categories.kids[0])
and don't display the interim categories poster screen.