Search code examples
javascriptandroidwebviewamazon-fire-tv

WebView is loading wrong resolution


I'm working on an App for Fire TV. I'm using a TV with 1920px width. In the App is a Webview in full size (match_parent). But if I check the Resolution of the WebView (window.screen.availWidth) it's only 960px.

Could anybody help me please?


Solution

  • The Amazon Fire TV platform scales your resources to the appropriate TV output. For 1080p the screen size is 1920x1080px, the density is 320dpi (“xhdpi”) and the output resolution is 960x540dp (“large”).

    https://developer.amazon.com/docs/fire-tv/design-and-user-experience-guidelines.html#screen-size-and-resolution