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: 
tgriffin19
Visitor

New SDK Example not working with my Feed

Hello, I have a private channel that was developed with an old sdk example application and it works fine with my feed. I downloaded new sdk and it will load my categories and subcategories but will not play my videos... any ideas? Here is a sample video category.

<feed>
<resultLength>3</resultLength><endIndex>3</endIndex>

<item sdImg="http://bvmconsole.com/roku_thumbnails/12366.png" hdImg="http://bvmconsole.com/roku_thumbnails/12366.png"><title>State Policy Network Founding Principles of Freedom </title><contentId>12366</contentId><contentType>episode</contentType><contentQuality>SD</contentQuality><media><streamFormat>hls</streamFormat><streamQuality>SD</streamQuality><streamBitrate>800</streamBitrate><streamUrl>http://wfs.mp.advection.net/vod/mp/bigvoicesmedia/BVMedia101/_dld/We-the-People_-Founding-Principles-of-Freedom_0800.mp4/playlist.m3u8</streamUrl></media><synopsis>We the People: Founding Principles of Freedom </synopsis><genres/><runtime>12000</runtime></item>

<item sdImg="http://bvmconsole.com/roku_thumbnails/12211.jpg" hdImg="http://bvmconsole.com/roku_thumbnails/12211.jpg"><title>The Poll Project</title><contentId>12211</contentId><contentType>episode</contentType><contentQuality>SD</contentQuality><media><streamFormat>hls</streamFormat><streamQuality>SD</streamQuality><streamBitrate>800</streamBitrate><streamUrl>http://wfs.mp.advection.net/vod/mp/bigvoicesmedia/BVMedia101/_dld/VotingPollsInterview_0800.mp4/playlist.m3u8</streamUrl></media><synopsis>Meet Us At The Poll, Project. Listen to the First Coast Tea Party Poll Project Team discuss their plans for getting out the vote in 2012!</synopsis><genres/><runtime>12000</runtime></item>

<item sdImg="http://bvmconsole.com/roku_thumbnails/11324.png" hdImg="http://bvmconsole.com/roku_thumbnails/11324.png"><title>Barbara Knick CPAC</title><contentId>11324</contentId><contentType>episode</contentType><contentQuality>SD</contentQuality><media><streamFormat>hls</streamFormat><streamQuality>SD</streamQuality><streamBitrate>800</streamBitrate><streamUrl>http://wfs.mp.advection.net/vod/mp/bigvoicesmedia/BVMedia101/_dld/CPAC_BarbaraKnick_0800.mp4/playlist.m3u8</streamUrl></media><synopsis>B!G with Barbara Knick Orlando FL</synopsis><genres/><runtime>12000</runtime></item>

</feed>
0 Kudos
7 REPLIES 7
bandal
Visitor

Re: New SDK Example not working with my Feed

Could be the start <> like there is no <genres> but you have <genres/> only, plus a few others without opening brackets. Tried VLC and I could not play either.
0 Kudos
TheEndless
Channel Surfer

Re: New SDK Example not working with my Feed

"bandal" wrote:
Could be the start <> like there is no <genres> but you have <genres/> only, plus a few others without opening brackets.

<genres /> is perfectly valid XML, and is parsed properly by the Roku XML parser, so I doubt that's the issue.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
0 Kudos
RokuJoel
Binge Watcher

Re: New SDK Example not working with my Feed

Which example?
0 Kudos
tgriffin19
Visitor

Re: New SDK Example not working with my Feed

The video player example.
0 Kudos
RokuChris
Roku Employee
Roku Employee

Re: New SDK Example not working with my Feed

I think the problem may be that your <streamFormat> element is subordinate to your <media> element. If you look at showFeed.brs, the paring logic expects the streamFormat element to be subordinate to the <item> element.
0 Kudos
destruk
Binge Watcher

Re: New SDK Example not working with my Feed

XML is easier to read if you format it like this


<feed>
<resultLength>3</resultLength>
<endIndex>3</endIndex>

<item sdImg="http://bvmconsole.com/roku_thumbnails/12366.png" hdImg="http://bvmconsole.com/roku_thumbnails/12366.png">
<title>State Policy Network Founding Principles of Freedom </title>
<contentId>12366</contentId>
<contentType>episode</contentType>
<contentQuality>SD</contentQuality>
<media>
<streamFormat>hls</streamFormat>
<streamQuality>SD</streamQuality>
<streamBitrate>800</streamBitrate>
<streamUrl>http://wfs.mp.advection.net/vod/mp/bigvoicesmedia/BVMedia101/_dld/We-the-People_-Founding-Principles-of-Freedom_0800.mp4/playlist.m3u8</streamUrl>
</media>
<synopsis>We the People: Founding Principles of Freedom </synopsis>
<genres/>
<runtime>12000</runtime>
</item>

<item sdImg="http://bvmconsole.com/roku_thumbnails/12211.jpg" hdImg="http://bvmconsole.com/roku_thumbnails/12211.jpg">
<title>The Poll Project</title>
<contentId>12211</contentId>
<contentType>episode</contentType>
<contentQuality>SD</contentQuality>
<media>
<streamFormat>hls</streamFormat>
<streamQuality>SD</streamQuality>
<streamBitrate>800</streamBitrate>
<streamUrl>http://wfs.mp.advection.net/vod/mp/bigvoicesmedia/BVMedia101/_dld/VotingPollsInterview_0800.mp4/playlist.m3u8</streamUrl>
</media>
<synopsis>Meet Us At The Poll, Project. Listen to the First Coast Tea Party Poll Project Team discuss their plans for getting out the vote in 2012!</synopsis>
<genres/>
<runtime>12000</runtime>
</item>

<item sdImg="http://bvmconsole.com/roku_thumbnails/11324.png" hdImg="http://bvmconsole.com/roku_thumbnails/11324.png">
<title>Barbara Knick CPAC</title>
<contentId>11324</contentId>
<contentType>episode</contentType>
<contentQuality>SD</contentQuality>
<media>
<streamFormat>hls</streamFormat>
<streamQuality>SD</streamQuality>
<streamBitrate>800</streamBitrate>
<streamUrl>http://wfs.mp.advection.net/vod/mp/bigvoicesmedia/BVMedia101/_dld/CPAC_BarbaraKnick_0800.mp4/playlist.m3u8</streamUrl>
</media>
<synopsis>B!G with Barbara Knick Orlando FL</synopsis>
<genres/>
<runtime>12000</runtime>
</item>
</feed>


That being said, I don't see any problems with your xml - like you said it is parsing and displaying your feed just fine, but it won't play the videos, so I'd guess it could be something different elsewhere. Or what RokuChris said, lol... 🙂
0 Kudos
mkenya
Visitor

Re: New SDK Example not working with my Feed

Did you get it to work. I can't gt mine to play either.
0 Kudos