Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
matrixebiz
Level 7

What available options in xml?

Hello, what available options are there to set for;
<contentQuality>SD</contentQuality>
<streamFormat>mp4</streamFormat>
0 Kudos
2 Replies
Roku Employee
Roku Employee

Re: What available options in xml?

Hello, what available options are there to set for;
<contentQuality>SD</contentQuality>

Options are SD or HD. If you set it to HD and the device is in SDTV mode, this will usually prevent the content from playing, so detect the mode with roDeviceInfo before adding a content item to the video playback component.

<streamFormat>mp4</streamFormat>

Please see this guide:
https://support.roku.com/hc/en-us/articles/208754908-Roku-Media-Player-Playing-your-personal-videos-...

Joel
0 Kudos
matrixebiz
Level 7

Re: What available options in xml?

"RokuJoel" wrote:
Hello, what available options are there to set for;
<contentQuality>SD</contentQuality>

Options are SD or HD. If you set it to HD and the device is in SDTV mode, this will usually prevent the content from playing, so detect the mode with roDeviceInfo before adding a content item to the video playback component.

<streamFormat>mp4</streamFormat>

Please see this guide:
https://support.roku.com/hc/en-us/articles/208754908-Roku-Media-Player-Playing-your-personal-videos-...

Joel

Hi Joel, I didn't see 'hls' as one of the streamformat options on that page but I know it is supported, did I miss something?

If I put SD instead of HD for an HD quality stream, will the stream quality be degraded during playback? I would like the video to still play on whatever device is used so if it only supports SD then would like it to lower quality to play if necessary.

Here is a sample of my xml script; where do I add roDeviceInfo?
</item>
<item sdImg="pkg:/images/pic.png" hdImg="pkg:/images/pic.png">
<title>Channel</title>
<description></description>
<streamFormat>hls</streamFormat>
<media>
<streamQuality>HD</streamQuality>
<streamBitrate>1500</streamBitrate>
<streamUrl>http://channel.m3u8</streamUrl>
</media>
<synopsis>Channel info</synopsis>
<genres>channel</genres>
<live>True</live>
</item>
0 Kudos