Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Level 7

Multilevel categories

Hello everybody:

Can anybody tell me how can we modify code and xml of video player example in order to add multilevel categories?

For example here is the xml sample that is taken from video player example:


<category title="Technology" description="TED Talks on Technology" sd_img="http://rokudev.roku.com/rokudev/examples/videoplayer/images/TED_Technology.png" hd_ img="http://rokudev.roku.com/rokudev/examples/videoplayer/images/TED_Technology.png">
<categoryLeaf title="The Mind" description="" feed="http://rokudev.roku.com/rokudev/examples/videoplayer/xml/themind.xml"/>
<categoryLeaf title="Global Issues" description="" feed="http://rokudev.roku.com/rokudev/examples/videoplayer/xml/globalissues.xml" />
</category>



I want actully to add another category under "Technology" and then want to add "categoryleaf" under that new category. So tell me guys how can i do that?
0 Kudos
1 Reply
Highlighted
Level 9

Re: Multilevel categories

You could create another xml feed for the next level category, and then create a new function like InitCategoryFeedConnection()... maybe call it Init2ndLevelCategoryFeedConnection() and then follow the code through and link it all up just like the home screen was.

--Kevin
0 Kudos