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: 
jbrave
Channel Surfer

Detect Resolution Settings?

This might sound stupid, but how do I detect if a Roku is set to HD vs SD or 16x9 mode? Testing a little graphic app on SD and it is off center, so I need to know if the user has the screen set to 4x3 or HD...

- Joel
Screenshades: The first Screensaver for Roku2!
Musiclouds: The best free internet music, on your Roku!
Ouroborialis: Psychedelic Screensaver for Roku!
0 Kudos
8 REPLIES 8
RokuChris
Roku Employee
Roku Employee

Re: Detect Resolution Settings?

The roDeviceInfo component has functions GetDisplayMode(), GetDisplayAspectRatio(), and (as of 2.6) GetDisplaySize(). See page 84 of the Component Reference.
0 Kudos
jbrave
Channel Surfer

Re: Detect Resolution Settings?

Thanks!
Screenshades: The first Screensaver for Roku2!
Musiclouds: The best free internet music, on your Roku!
Ouroborialis: Psychedelic Screensaver for Roku!
0 Kudos
evilmax17
Visitor

Re: Detect Resolution Settings?

Is there a way to specifically check if the Roku is set to the 1080p display type setting (versus 720p)?

I have mine set to 1080p, but I get the following results from roDeviceInfo:

GetDisplayType() = "HDTV"
GetDisplayMode() = "720p"
My Roku Channels:
Viddler - viddler.com
Tested Fan - tested.com | Jamie & Adam
This is my next - theverge.com
1080p Showcase - RIP
Whiskey Media - RIP
======================
http://www.binarymoustache.com
0 Kudos
Anonymous
Visitor

Re: Detect Resolution Settings?

"evilmax17" wrote:
Is there a way to specifically check if the Roku is set to the 1080p display type setting (versus 720p)?

I have mine set to 1080p, but I get the following results from roDeviceInfo:

GetDisplayType() = "HDTV"
GetDisplayMode() = "720p"



What are you trying to accomplish? From a UI programming perspective, there is no 1080p. 1080p in the current hardware is only used when playing video that is specifically noted as being 1080p.
0 Kudos
evilmax17
Visitor

Re: Detect Resolution Settings?

"RokuPatrick" wrote:
"evilmax17" wrote:
Is there a way to specifically check if the Roku is set to the 1080p display type setting (versus 720p)?

I have mine set to 1080p, but I get the following results from roDeviceInfo:

GetDisplayType() = "HDTV"
GetDisplayMode() = "720p"



What are you trying to accomplish? From a UI programming perspective, there is no 1080p. 1080p in the current hardware is only used when playing video that is specifically noted as being 1080p.

See my new channel, 1080p Showcase.

This channel plays 1080p videos ONLY, so I would want to restrict it to users who have the capability to play them.
My Roku Channels:
Viddler - viddler.com
Tested Fan - tested.com | Jamie & Adam
This is my next - theverge.com
1080p Showcase - RIP
Whiskey Media - RIP
======================
http://www.binarymoustache.com
0 Kudos
Arwen
Channel Surfer

Re: Detect Resolution Settings?

"RokuPatrick" wrote:
"evilmax17" wrote:
Is there a way to specifically check if the Roku is set to the 1080p display type setting (versus 720p)?

I have mine set to 1080p, but I get the following results from roDeviceInfo:

GetDisplayType() = "HDTV"
GetDisplayMode() = "720p"



What are you trying to accomplish? From a UI programming perspective, there is no 1080p. 1080p in the current hardware is only used when playing video that is specifically noted as being 1080p.


It would be nice if pictures, (JPEG or PNG), could use 1080p.
Most digital still cameras today are much higher resolution
than 1080p, but would look better at 1080p than 720p.

Don't know if this would be possible, (now or later). Just asking.
Arwen Evenstar
Middle Earth
0 Kudos
renojim
Community Streaming Expert

Re: Detect Resolution Settings?

There is roDeviceInfo's HasFeature("1080p_hardware"), but that only tells you if the box is capable of 1080p, not if it's in 1080p mode.

-JT
Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
0 Kudos
Anonymous
Visitor

Re: Detect Resolution Settings?

"evilmax17" wrote:
"RokuPatrick" wrote:
"evilmax17" wrote:
Is there a way to specifically check if the Roku is set to the 1080p display type setting (versus 720p)?

I have mine set to 1080p, but I get the following results from roDeviceInfo:

GetDisplayType() = "HDTV"
GetDisplayMode() = "720p"



What are you trying to accomplish? From a UI programming perspective, there is no 1080p. 1080p in the current hardware is only used when playing video that is specifically noted as being 1080p.

See my new channel, 1080p Showcase.

This channel plays 1080p videos ONLY, so I would want to restrict it to users who have the capability to play them.


Even non-1080p boxes can technically play the 1080p video, but it will be scaled to 720p
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.