androidx / androidx/media

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

Open
#905 1 comment 0 reactions 1 assignee View on GitHub

@marcbaechinger is already working on this.

Since Dec 19, 2023.

bug needs triage
Dominant language
Java
Stars
3k
Forks
955
Avg merge
12d 14h
Merged PRs (30d)
2

Description

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 android-media-github@google.com after filing this issue.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.