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: 
joetesta
Roku Guru

HD designation

Hello -

I encoded a video with Handbrake and the result is 1920 x 1072 @ 2.5mbps. In the xml file I set contentQuality and streamQuality to HD, but when I play the video I see qaulity: 4 dots without the HD designation that I've seen on other channels such as amazon prime. Is there something else I need to do in the xml or somewhere to get that HD designation to appear?

tyvmia,
Joe
aspiring
0 Kudos
5 REPLIES 5
RokuChris
Roku Employee
Roku Employee

Re: HD designation

For the HD badge to appear, you should set the hdBranded attribute on your content-meta-data to true. http://sdkdocs.roku.com/display/RokuSDK ... +Meta-Data
0 Kudos
joetesta
Roku Guru

Re: HD designation

Thanks Chris -
I tried this but it still doesn't show the 'HD' symbol. Here's a redacted version of the XML I have now:

<item sdImg="http://example.com/439.jpg" hdImg="http://example.com/439.jpg">
<title>Episode 1</title>
<contentId>439</contentId>
<ContentType>movie</ContentType>
<contentQuality>HD</contentQuality>
<streamFormat>mp4</streamFormat>
<media>
<streamQuality>HD</streamQuality>
<streamBitrate>600</streamBitrate>
<streamUrl>http://example.com/439_600.mp4</streamUrl>
</media>
<media>
<streamQuality>HD</streamQuality>
<streamBitrate>2500</streamBitrate>
<streamUrl>http://example.com/439_2500.mp4</streamUrl>
</media>
<synopsis>
An interview
</synopsis>
<starRating>75.0000</starRating>
<votes>4</votes>
<actors>Starring: X</actors>
<director/>
<releasedate>Released: 2013</releasedate>
<genres/>
<hdBranded>True</hdBranded>
<runtime>310</runtime>
<hdBifUrl>
http://example.com/439_bif_hd.bif
</hdBifUrl>
<sdBifUrl>
http://example.com/439_bif_sd.bif
</sdBifUrl>
</item>


I also tried including the hdbranded tag inside the media element like this, but the result was the same (no HD designation while loading)
<media>
<HDBranded>True</HDBranded>
<streamQuality>HD</streamQuality>
<streamBitrate>2500</streamBitrate>
<streamUrl>http://example.com/502_2500.mp4</streamUrl>
</media>


Is there something else needed to get that 'HD' designation to appear while the videos load? tyvmia!
aspiring
0 Kudos
RokuJoel
Binge Watcher

Re: HD designation

the ParseShowFeed function in showfeed.brs in the videoplayer example has the following lines:

item.HDBranded = false
item.IsHD = false


You'll probably want to change that behavior to something similar to this:


di=createobject("roDeviceInfo")
if di.GetDisplayType()="HDTV" then
if item.ContentQuality="HD" then
item.HDBranded=true
item.isHD=true
else
item.HDBranded = false
item.IsHD = false
end if
else
item.HDBranded = false
item.IsHD = false
end if
0 Kudos
RokuChris
Roku Employee
Roku Employee

Re: HD designation

"joetesta" wrote:
I tried this but it still doesn't show the 'HD' symbol. Here's a redacted version of the XML I have now:


Just to add to Joel's point. It's important to remember that you don't program Roku with XML. Roku can consume pretty much any XML or JSON you want to throw at it. But it can't do anything useful with that data until you develop the BrightScript to parse that data.
0 Kudos
joetesta
Roku Guru

Re: HD designation

Thanks Joel - My bad for assuming the videoplayer example would support HDbranded. Now I see it, I could get the new values from the XML but I like your solution better. Thanks!
aspiring
0 Kudos