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

Videoplayer and Episodes

I am using the videoplayer example and am using "arced-portrait" and "movie" as contentType and all is good with my shows reading my xml files for VOD and all artwork is good since "movie" is what I wanted.

Right now I select a Category and then a CategoryLeaf and a Title and show the detailscreen as I do now and all is ok to play or resume the VOD shows.

But, now what I want on some Titles in the CategoryLeaf, I say some Titles, I need a way to Select the Title and go into an Episodic screen type list of shows, then select the Episode I want. How can I do this at this level? I searched the forums and only 1 asked for this and the answer was not there. Anyone have any clue how to do this. I have been through the PDF's and see no clear way to do it.

DA
0 Kudos
4 REPLIES 4
RokuJoel
Binge Watcher

Re: Videoplayer and Episodes

"bandal" wrote:
But, now what I want on some Titles in the CategoryLeaf, I say some Titles, I need a way to Select the Title and go into an Episodic screen type list of shows, then select the Episode I want. How can I do this at this level?


Generally, you would pass an array of the list of titles to a function that displays an roPosterscreen with the episodic listStyle type, and when one of the episodes is selected you pass the same array, along with an index to the currently selected item, to a function that displays an roSpringboard screen.

If you are trying to figure out how to extract the data from the parsed XML, perhaps post one smaller chunk of XML that includes all the data you are trying to display for one episode and we can help you.

- Joel
0 Kudos
bandal
Visitor

Re: Videoplayer and Episodes

Joel,

I think I need help with both you mentioned like code examples and an xml chunk as an example. I am still new to this and banging my head each day to figure it all out.

DA
0 Kudos
RokuJoel
Binge Watcher

Re: Videoplayer and Episodes

Can you post a short sample of the XML you are trying to parse?

- Joel
0 Kudos
bandal
Visitor

Re: Videoplayer and Episodes

Joel,

Don't laugh, but here I am...

In catagories.xml I have this so far as I use a category leaf to do episodes. No coding yet for the xml that is called to do an episode list. That is where I am stuck. I think all of us that use the sample SDK needs real functional samples and we just insert our links and such. I need maybe a submenu of the categoryleaf. But how to get it to do a flat-eposodic style?

categories.xml

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

<!-- banner_ad: optional element which displays an at the top level category screen -->
'<banner_ad sd_img="http://www.xxxx.org/Rokudev/video/images/missing.jpg" hd_img="http://www.xxxx.org/Rokudev/video/images/missing.jpg"/>

<category title="Romance" description="Romance Movies" sd_img="http://www.xxxxx.org/Rokudev/video/images/romance.jpg" hd_img="http://www.xxxx.org/Rokudev/video/images/romance.jpg">
<categoryLeaf title="Romance" description="" feed="http://www.xxxx.org/Rokudev/xml/romance.xml"/>
<categoryLeaf title="Romance Episodes" description="" feed="http://www.xxxx.org/Rokudev/video/xml/romanceepisodes.xml" />
</category>
-------------------------------------------------------------------------------------------------------------
Then this romanceepisodes.xml file from modified sample from videoplayer to get my Episodes.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<feed>
<!-- resultLength indicates the total number of results for this feed -->
<resultLength>4</resultLength>
<!-- endIndix indicates the number of results for this *paged* section of the feed -->
<endIndex>4</endIndex>
<item sdImg="http://www.xxxx.org/Rokudev/video/images/episode1.jpg" hdImg="http://www.xxxx.org/Rokudev/video/images/episode1.jpg">
<title>Test Episode 1</title>
<contentId>10011</contentId>
<contentType>episode</contentType>
<contentQuality>SD</contentQuality>
<media>
<streamFormat>mp4</streamFormat>
<streamQuality>SD</streamQuality>
<streamBitrate>1500</streamBitrate>
<streamUrl>http://www.xxxxx.org/Rokudev/video/test.mp4</streamUrl>
</media>
<synopsis>This is a Test of Episode 1</synopsis>
<genres>Episodes</genres>
<runtime>253</runtime>
</item>
<item sdImg="http://www.xxxx.org/Rokudev/video/images/episode2.jpg" hdImg="http://www.xxxx.org/Rokudev/video/images/episode2.jpg">
<title>Test Episode 2</title>
<contentId>10012</contentId>
<contentType>episode</contentType>
<contentQuality>SD</contentQuality>
<media>
<streamFormat>mp4</streamFormat>
<streamQuality>SD</streamQuality>
<streamBitrate>1500</streamBitrate>
<streamUrl>http://www.xxxxx.org/Rokudev/video/test.mp4</streamUrl>
</media>
<synopsis>This is a Test of Episode 2</synopsis>
<genres>Episodes</genres>
<runtime>253</runtime>
</item>
<item sdImg="http://www.xxxx.org/Rokudev/video/images/episode3.jpg" hdImg="http://www.xxxxx.org/Rokudev/video/images/episode3.jpg">
<title>Test Episode 3</title>
<contentId>10013</contentId>
<contentType>episode</contentType>
<contentQuality>SD</contentQuality>
<media>
<streamFormat>mp4</streamFormat>
<streamQuality>SD</streamQuality>
<streamBitrate>1500</streamBitrate>
<streamUrl>http://www.xxxx.org/Rokudev/video/test.mp4</streamUrl>
</media>
<synopsis>This is a Test of Episode 3</synopsis>
<genres>Episodes</genres>
<runtime>253</runtime>
</item>
<item sdImg="http://www.xxxx.org/Rokudev/video/images/episode4.jpg" hdImg="http://www.xxxx.org/Rokudev/video/images/episode4.jpg">
<title>Test Episode 4</title>
<contentId>10014</contentId>
<contentType>episode</contentType>
<contentQuality>SD</contentQuality>
<media>
<streamFormat>mp4</streamFormat>
<streamQuality>SD</streamQuality>
<streamBitrate>1500</streamBitrate>
<streamUrl>http://www.xxxxx.org/Rokudev/video/test.mp4</streamUrl>
</media>
<synopsis>This is a Test of Episode 4</synopsis>
<genres>Episodes</genres>
<runtime>253</runtime>
</item>
</feed>
0 Kudos