Your Digital Media Has Never Looked So Good

 
rsromeo
Topic Author
Posts: 110
Joined: Wed Jun 02, 2010 4:25 pm

Categories/Category Leaf nodes?

Sun Jun 06, 2010 11:23 am

Hi -

I'm new to SDK and am working with the videoplayer example but I do not want to drill down from the main category to a category leaf since there is only one item in each category. Instead, I would like to go directly to the detail screen from the home screen. Can someone please clue me in on how I might be able to accomplish this? Appreciate any help. Thanks.
I tried doing it the below way in categories.xml...but it didn't work....

<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" feed="http://rokudev.roku.com/rokudev/examples/videoplayer/xml/themind.xml"/>

In short, when user selects category from home screen, I want to go directly to detail screen with Play button, etc.
 
User avatar
RokuKevin
Roku Engineering
Posts: 796
Joined: Tue Sep 22, 2009 2:29 pm

Re: Categories/Category Leaf nodes?

Tue Jun 08, 2010 2:22 pm

You essentially want to eliminate a hierarchy level. This could be quickly accomplished by modifying the definition of showHomeScreen() to:
Function showHomeScreen(screen) As Integer

    if validateParam(screen, "roPosterScreen", "showHomeScreen") = false return -1

    initCategoryList()

    kid = m.Categories.Kids[1] ' pick the first category.
                               ' Modify only that music.xml file on server.
    displayCategoryPosterScreen(kid)

    return 0
End Function


--Kevin
 
rsromeo
Topic Author
Posts: 110
Joined: Wed Jun 02, 2010 4:25 pm

Re: Categories/Category Leaf nodes?

Tue Jun 08, 2010 6:37 pm

thanks. I tried it but it didn't produce what I was looking for. I want the home page to show all categories like it does in videoplayer example and start with the first category in focus using...

screen.SetContentList(m.Categories.Kids)
screen.SetFocusedListItem(0)
screen.Show()

Then when I select one of the top level categories, I want to jump right to the springboard screen for that selected category. Currently it jumps from top level category to another poster screen with filter banner. Then I select the same category and it finally gets to the springboard screen.

Who is online

Users browsing this forum: No registered users and 3 guests