media icon indicating copy to clipboard operation
media copied to clipboard

Video blinking when switching between videos with different ratios (Android 14 only)

Open yevhenKhamaziuk opened this issue 2 years ago • 1 comments

Version

Media3 1.2.0

More version details

No response

Devices that reproduce the issue

Pixel 7 pro, android 14

Devices that do not reproduce the issue

Pixel 7 Pro, android 13

Reproducible in the demo app?

Not tested

Reproduction steps

  1. Play the video from a resource file.
  2. Play another video from a resource file. The second video has a different side ratio.

Expected result

The video starts playing without visual resize effects.

Actual result

On Android 14, there seems to be an issue with video blinking when switching between videos with varying aspect ratios.

https://github.com/androidx/media/assets/153927626/d9a2842f-4e2f-4e0b-807f-7be8d033ce39

It looks like the last frame of the first video was applied scale from the second video. SCR-20231211-ugft SCR-20231211-ugiq

I've also created an example project ( https://github.com/marzic93/ExoplayerBugExample ) to reproduce this bug.

Media

https://github.com/marzic93/ExoplayerBugExample/blob/main/app/src/main/res/raw/example_1.MP4 https://github.com/marzic93/ExoplayerBugExample/blob/main/app/src/main/res/raw/example_2.mp4

Bug Report

  • [ ] You will email the zip file produced by adb bugreport to [email protected] after filing this issue.

yevhenKhamaziuk avatar Dec 18 '23 14:12 yevhenKhamaziuk

@marcbaechinger Hello! Do you have any ideas why it happened?

yevhenKhamaziuk avatar Feb 22 '24 12:02 yevhenKhamaziuk