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.
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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"?>

<category title="Movies" description="Lorem Ipsum" sd_img="" hd_img="">
<categoryLeaf title="Action" feed=""/>
<categoryLeaf title="Comedy" feed=""/>
<categoryLeaf title="Drama" feed=""/>
<categoryLeaf title="Family" feed=""/>
<categoryLeaf title="Horror" feed=""/>
<categoryLeaf title="Romance" feed=""/>
<categoryLeaf title="Sci-Fi" feed=""/>

<category title="TV Shows" description="" sd_img="" hd_img="">
<categoryLeaf title="TV Shows" description="a" feed=""/>


And my TV Shows feed will look like this:

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

<category title="TV Shows" description="" sd_img="" hd_img="">
<categoryLeaf title="Community" description="a" feed=""/>
<categoryLeaf title="Fresh Prince" description="a" feed=""/>
<categoryLeaf title="Game of Thrones" description="a" feed=""/>
<categoryLeaf title="The Office" description="a" feed=""/>

0 Kudos
Binge Watcher

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
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.