You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expose the aspect ratio deformation in a useful way for our UI to know if we should show a button to toggle resize modes.
Scenario = 18:9 wide phones like the s8 / pixel 2 XL need a custom feature to allow users to toggle between resize modes (ZOOM and FIT). Similarly viewing 4:3 content on a 16:9 device. It's great that Exo supports these zoom modes....but....
I don't want to show a full screen resize button if the aspect ratio isn't deformed. I'd like to know if the video aspect ratio and the view aspect ratio are the same (within a given tolerance like MAX_ASPECT_RATIO_DEFORMATION_FRACTION).
The code for all this logic exists across SimpleExoPlayerView and AspectRatioFrameLayout. It's tricky to replicate.
Request would be for a property on the SimpleExoPlayerView called aspectRatioDeformation()
The text was updated successfully, but these errors were encountered:
…date
Currently, AspectRatioFrameLayout may need to resize itself if it could not
satisfy a target aspect ratio. User may want to know when this happen, or
whether this can happen, so they can update their UI accordingly. For
example: show/hide a button to toggle different resize mode only when the
aspect ratio of the view and the content is very different.
GitHub: #3736
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=187484241
Feature request
Expose the aspect ratio deformation in a useful way for our UI to know if we should show a button to toggle resize modes.
Scenario = 18:9 wide phones like the s8 / pixel 2 XL need a custom feature to allow users to toggle between resize modes (ZOOM and FIT). Similarly viewing 4:3 content on a 16:9 device. It's great that Exo supports these zoom modes....but....
I don't want to show a full screen resize button if the aspect ratio isn't deformed. I'd like to know if the video aspect ratio and the view aspect ratio are the same (within a given tolerance like
MAX_ASPECT_RATIO_DEFORMATION_FRACTION
).The code for all this logic exists across
SimpleExoPlayerView
andAspectRatioFrameLayout
. It's tricky to replicate.Request would be for a property on the
SimpleExoPlayerView
calledaspectRatioDeformation()
The text was updated successfully, but these errors were encountered: