There are several approaches to this... I would think the quickest way is to leverage the current structure of the videoplayer app.
Following the structure of the videoplayer example, you may want to break up the subcategories into its own xml file. You could then copy categoryFeed.brs to subCategoryFeed.brs and modify both so that you can parse the new level of categories. I'd also use preShowHomeScreen() and showHomeScreen() as templates for preShowSubCategory() and showCategoryScreen() methods.
also can we initialize both category and subCategory screens in AppMain.brs something like this?
'initialize theme attributes like titles, logos and overhang color initTheme()
'prepare the screen for display and get ready to begin screen=preShowHomeScreen("", "") subscreen=preShowSubCategory("", "") if screen=invalid then print "unexpected error in preShowHomeScreen" return end if 'set to go, time to get started showHomeScreen(screen) showCategoryScreen(subscreen)
Also initialize subcategories.xml in InitSubCategoryFeedConnection() of subCategoryFeed.brs
Function InitSubCategoryFeedConnection() As Object
Hello all.. i am new to all this... need a help with an issue that i am facing...
I used the existing example code from the sdk "Videoplayer" and tried to change the url, xml, etc.
i am facing problem with this brs file named "CategoryFeed".
There is a code "conn.UrlPrefix = "http://rokudev.roku.com/rokudev/examples/videoplayer/xml"... how do I change this part to my xml folder? i tried this following, it didn't work as I expected. can you give me a suggestion?
conn.UrlPrefix = "pkg:/XML"
As i told you, i didn't expect this to work, but need a work around to make it work. please help