Roku Developer Program

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

How can I open a PosterScreen from a category?

Hi! I am using the VideoPlayer template from the SDK and trying to implement the following idea:

Channel opens to a HomeScreen with 2 posters - Movies and TV Shows

Movies opens a PosterScreen with a a category for each genre (Action, Comedy, etc). I have this set up to work exactly how I want it.

TV Shows opens a PosterScreen with a poster for each TV Show. Now the idea is to have every one of these posters open ANOTHER PosterScreen. There will be a different PosterScreen for every TV Show, with the categories being seasons. My question is a) Is this possible? and b) how can I implement this.

If it is of any help, I am parsing from an XML which is currently structured like this:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<categories>

<category title="Movies" description="Lorem Ipsum" sd_img="http://www.url.com/image.png" hd_img="http://www.url.com/image.png">
<categoryLeaf title="Action" feed="http://www.url.com/examplefeedAction.xml"/>
<categoryLeaf title="Comedy" feed="http://www.url.com/examplefeedComedy.xml"/>
<categoryLeaf title="Drama" feed="http://www.url.com/examplefeedDrama.xml"/>
<categoryLeaf title="Family" feed="http://www.url.com/examplefeedFamily.xml"/>
<categoryLeaf title="Horror" feed="http://www.url.com/examplefeedHorror.xml"/>
<categoryLeaf title="Romance" feed="http://www.url.com/examplefeedRomance.xml"/>
<categoryLeaf title="Sci-Fi" feed="http://www.url.com/examplefeedSciFi.xml"/>
</category>

<category title="TV Shows" description="" sd_img="http://www.url.com/image.png" hd_img="http://www.url.com/image.png">
<categoryLeaf title="TV Shows" description="a" feed="http://www.url.com/examplefeedTV.xml"/>
</category>

</categories


And my TV Shows feed will look like this:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<categories>

<category title="TV Shows" description="" sd_img="http://www.url.com/image.png" hd_img="http://www.url.com/image.png">
<categoryLeaf title="Community" description="a" feed="http://www.url.com/examplefeedCommunity.xml"/>
<categoryLeaf title="Fresh Prince" description="a" feed="http://www.url.com/examplefeedFreshPrince.xml"/>
<categoryLeaf title="Game of Thrones" description="a" feed="http://www.url.com/examplefeedGoT.xml"/>
<categoryLeaf title="The Office" description="a" feed="http://www.url.com/examplefeedOffice.xml"/>
</category>

</categories>
0 Kudos
1 Reply
Roku Employee
Roku Employee

Re: How can I open a PosterScreen from a category?

Significant rewriting of the videoplayer template may be necessary in order to make it do what you want.

Some users on this forum may have taken the time to make such modifications and perhaps one of them is willing to share with you.

Otherwise, you will have to spend some time dissecting the example and then modifying it. The modification will probably need to be mostly in the Brightscript code, but some XML adjustments may be necessary as well.

My opinion is that it is easier to write your own channel from scratch than it is to modify the videoplayer example, however a good compromise would be to take the XML parsing functions from the videoplayer example and use them in your own channel that you create from scratch.

- Joel
0 Kudos