Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

4K Android TV reporting wrong resolution (HD)
Started by lacho.tomov Jan 21 2019 06:52 AM

2 replies to this topic
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

lacho.tomov

[GLOBAL: userInfoPane.html]
lacho.tomov
  • Observer

  • 19 posts
  • Corona SDK

I tried submitting this as a bug report, but for some reason it keeps redirecting me to homepage, so I'll post it here.

 

I'm testing on a Sony Bravia Android TV, which is 4K resolution (3840 x 2160).

However display.pixelWidth and display.pixelHeight report 1920 and 1080 respectively, instead of the expected 3840 and 2160.

This also causes the scale factor to be wrong and the dynamic image resolution to pick up the HD images, instead of the UHD ones.

 

I suspect this may be a Sony/Android bug, because I've had the same problem when developing native Android apps for this TV and this is a known thing:

https://github.com/google/ExoPlayer/issues/1685

 

So Google's ExoPlayer uses the following workaround to fix this:

https://github.com/google/ExoPlayer/blob/42e5d5c2e61d2715d62d715bbd92b715e7f78f88/library/src/main/java/com/google/android/exoplayer/chunk/VideoFormatSelectorUtil.java#L202

 

Is this really a bug or am I doing something wrong?

 

Thanks!



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,072 posts
  • Enterprise

I'm asking engineering to look at this. We don't have a Sony Bravia Android TV and we are very unlikely to do so, therefore, I don't know how well we can test any changes.

 

Rob



[TOPIC: post.html]
#3

lacho.tomov

[GLOBAL: userInfoPane.html]
lacho.tomov
  • Observer

  • 19 posts
  • Corona SDK

Yeah I understand. If I can help with anything, please let me know.

 

Thanks!




[topic_controls]
[/topic_controls]