Process flow would be :
Browse Movies ( Home screen - roPosterScreen) → Movie Genres(roPosterScreen) —> Action , Drama (roPosterScreen) —> feed (roSpringBoardScreen )
Would like to see how I can modify the video player example to achieve this.
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?
Sub Main()
'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)
End Sub
Also initialize subcategories.xml in InitSubCategoryFeedConnection() of subCategoryFeed.brs
Function InitSubCategoryFeedConnection() As Object
The xml should be in an internet-accessible URL, not contained in the package. http://rokudev.roku.com you can put in a browser and get to it, so follow that as an example and you’ll be right as rain.