Skip to content

mp4 with a height of 1080 does not return correct widthHeightRatio on a device screen that is 480x800 #656

@42footPaul

Description

@42footPaul

I've been implementing ExoPlayer in our Adobe AIR project as an ANE in order to do progressive download and save of mp4 files. This is working rather well and the player seems to work like a charm for our case. I'm using master and used the demo player as a start and added functionality as we needed such as the controls UI and a custom HttpDataSource and TransferListener to save the files.

In our latest testing we are getting a video scaling issue on devices with 480x800 screen resolution with videos that are 1080 in height.

I don't have access to the device at the moment so all I can do is have our tester run it and email our own logs.

For the 800x480 device we get this back for a video that is 1920x1080
PlayerActivity::VIDEO SURFACE CHANGED format=4 w=800 h=480
PlayerActivity::VIDEO SIZE CHANGED w=1920 h=540 widthRatio=1.0
PlayerActivity::widthHeightRatio=3.5555556

this is what we get for a video that is 1440x1080
PlayerActivity::VIDEO SURFACE CHANGED format=4 w=800 h=480
PlayerActivity::VIDEO SIZE CHANGED w=1440 h=540 widthRatio=1.0
PlayerActivity::widthHeightRatio=2.6666667

On a device that is 854x480 we get this back for the exact same 1920x1080 video
PlayerActivity::VIDEO SURFACE CHANGED format=4 w=854 h=480
PlayerActivity::VIDEO SIZE CHANGED w=1920 h=1080 widthRatio=1.0
PlayerActivity::widthHeightRatio=1.7777778

We verified that this happens in the Demo App as well. Any suggestions here?

1920_1080
1440_1080

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions