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

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 1
RokuKevin
Visitor

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