Closed
Description
Version
Media3 1.4.0
More version details
After updating media3 to version 1.4.0, Shared element transitions fail. Specifically, PlayerView does not scale properly on Android 14 and above. The issue does not occur on Android 13. Reverting back to version 1.3.1 resolves the problem.
Devices that reproduce the issue
- OnePlus 12 running Android 15 beta
- Lenovo Legion Tab running Android 14
Devices that do not reproduce the issue
- Lenovo Legion Tab running Android 13
Reproducible in the demo app?
Not tested
Reproduction steps
none
Expected result
none
Actual result
none
Media
example
1.3.1.webm
1.4.0.webm
Bug Report
- You will email the zip file produced by
adb bugreport
to android-media-github@google.com after filing this issue.
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
onlymash commentedon Aug 5, 2024
This may be caused by this commit
30cb762
icbaker commentedon Aug 5, 2024
That commit shouldn't affect Android 15 (
SDK_INT == 35
), because all the logic is gated by aSDK_INT == 34
check, but you said that Android 15 did reproduce the issue. Please can you check that repro case again, and confirm the value ofBuild.VERSION.SDK_INT
that you see?If you are able to build locally and revert that change on top of 1.4.0 to confirm it as the culprit, that would also be very helpful.
onlymash commentedon Aug 5, 2024
OnePlus 12's A15 beta is an early version, and the SDK_INT is still 34
onlymash commentedon Aug 5, 2024
I reverted this commit and build it locally, and I can confirm that this commit caused it.
icbaker commentedon Aug 5, 2024
Thank for you for confirming.
Are you able to explain your repro set-up in more detail? You mention 'shared element transitions' - is that referring to this Compose feature? https://developer.android.com/develop/ui/compose/animation/shared-elements
If you have a code snippet describing how your UI is wired together, or even a minimal reproducible example that demonstrates the problem in a way that we can build locally, that would be really helpful.
The easiest way to do this is probably to fork this project and make changes in one of the demo apps, then link us to the fork.
Alternatively it could be an Android Studio project zipped up and sent to android-media-github@google.com with the subject "Issue #1594". If emailing please also update this issue to indicate you’ve done this.
15 remaining items