android / platform-samples

A collection of samples of different Android OS platform APIs.
https://developer.android.com/about
Apache License 2.0
1.16k stars 251 forks source link

Add AspectRatioFrameLayout for PlayerView so video is properly sized within video player when first set #173

Closed calren closed 5 months ago

calren commented 5 months ago

Fixes https://github.com/android/platform-samples/issues/172

calren commented 5 months ago

@droid-girl Can you take a quick look at this fix for video being properly sized / fitted? Or feel free to tag someone from ExoPlayer team. Thanks!

calren commented 5 months ago

As mentioned in https://github.com/android/platform-samples/issues/172, this is only a workaround for a Compose related issue that should be resolved in the 1.4.0-rc01 release of Media3, so I will close this PR for now.