androidx / androidx/media

Videos filmed vertically are rotated 90 degrees on Android 9

Open
#1,065 2 comments 1 reaction 1 assignee View on GitHub

@microkatz is already working on this.

Since Feb 7, 2024.

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

Description

Version

Media3 1.2.1

More version details

I developed an Android TV app: https://github.com/giejay/Immich-Android-TV

Unfortunately, a user discovered a bug when playing videos which are filmed vertically (yes I know, deadly sin). The videos are rotated 90 degrees, but the viewscope is correct. I tried different "solutions" with rotating the video but it's not working for me.

Bug is described here: https://github.com/giejay/Immich-Android-TV/issues/7

Devices that reproduce the issue

Sony Bravia with Android 9

Devices that do not reproduce the issue

Emulators with Android 11-14

Reproducible in the demo app?

Not tested

Reproduction steps

It's reproducible by installing the Android TV app (https://play.google.com/apps/testing/nl.giejay.android.tv.immich) and playing the video in the Test Vertical Video album of the demo environment.

Expected result

Media plays in correct rotation

Actual result

Video is played rotated

Media

https://photos-demo.giejay.nl/share/yI3IO4JBVT_FJojSFNxUunHwGAVlaQ_78fhWMzYL2wDz5sRNapxUcr8nIVSCJ2smkaA

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.