Forum Discussion

jbrave's avatar
jbrave
Channel Surfer
15 years ago

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

7 Replies

  • The roDeviceInfo component has functions GetDisplayMode(), GetDisplayAspectRatio(), and (as of 2.6) GetDisplaySize(). See page 84 of the Component Reference.
  • 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"
  • "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.
  • "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.
  • renojim's avatar
    renojim
    Community Streaming Expert
    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
  • "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