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

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

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!

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

“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.

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!