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

NO SD Content Message

If I do not want to have a separate SD stream, only an HD stream for my published channel how do I display a screen when SDTV mode is detected that informs the user the channel is only compatible with HDTVs?

I know that I can get the mode the device is in by using the roDeviceInfo component, specifically the GetDisplayType() method but what should I do next to make this message appear for SDTV users?
0 Kudos
3 REPLIES 3
RokuJoel
Binge Watcher

Re: NO SD Content Message

Just use roDeviceInfo to check if the device is in HDTV or not, if not, then set your video playback parameters to indicate SDTV mode, and the device will auto - downscale the HDTV stream to display it in SDTV mode.

- Joel
0 Kudos
mwilliams
Visitor

Re: NO SD Content Message

Is this added into the XML file?

For example, one of the items in the xml file is:

<item sdImg="http://relevantfl.org/roku/artwork/RCFL_MIM.png" hdImg="http://relevantfl.org/roku/artwork/RCFL_MIM.png">
<title>Miracles In Motion, Ep 13</title>
<contentId>10020</contentId>
<contentType>Religious</contentType>
<contentQuality>HD</contentQuality>
<streamFormat>mp4</streamFormat>
<media>
<streamQuality>HD</streamQuality>
<streamBitrate>1500</streamBitrate>
<streamUrl>http://relevantfl.org/roku/miraclesinmotion/Miracles%20In%20Motion%20with%20Pastor%20Chris%20Sarno%20Ep%2013.mp4</streamUrl>
</media>
<synopsis>Miracles in Motion episode 13 with Pastor Chris and Liz Sarno</synopsis>
<genres>Religious</genres>
<runtime>1710.6</runtime>
</item>

Should I add the item again with a contentQuality and streamQuality of SD with a streamBitrate of 500? or is the Bitrate held at 1500 and the contentQuality and streamQuality the only things changed to SD?
0 Kudos
TheEndless
Channel Surfer

Re: NO SD Content Message

If you remove the "streamQuality" tag completely, it should work in both SD and HD. Specifying a streamQuality of HD will prevent it from playing at SD resolutions.
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
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.