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

What available options in xml?

Hello, what available options are there to set for;
<contentQuality>SD</contentQuality>
<streamFormat>mp4</streamFormat>
0 Kudos
2 REPLIES 2
RokuJoel
Binge Watcher

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

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