Skip to content

[video_player_android] Incorrect orientation when previewing captured videos #154696

@AlexV525

Description

@AlexV525

Workaround

  • Pin video_player_android to 2.7.1.
  • Upgrade to video_player_android to 2.8.4.

Steps to reproduce

With the official example

  1. Run the example of camera
  2. Select a camera and record for a few seconds in portrait up.
  3. See the preview video being orientated incorrectly.

With other Flutter packages

Run the example of package:wechat_camera_picker.

Expected results

The video preview should have a correct rotation.

Actual results

The video preview shows an incorrect rotation. This is likely affected by flutter/packages#6456, and we also have similar problems with camera_android_camerax: #149177, and camera_android: #150549.

Code sample

https://github.com/flutter/packages/tree/main/packages/camera/camera/example

Screenshots or Video

Screenshots / Video demonstration
petal_20240906_092951.mp4

Logs

N/A

Flutter Doctor output

Doctor output
[✓] Flutter (Channel master, 3.25.0-1.0.pre.270, on Microsoft Windows [Version 10.0.22631.4037], locale en-US)
    • Flutter version 3.25.0-1.0.pre.270 on channel master at X:\SDK\flutter-master
    • Upstream repository https://github.com/flutter/flutter
    • Framework revision a7cd788d80 (16 hours ago), 2024-09-05 05:57:40 -0400
    • Engine revision 34b61eb53b
    • Dart version 3.6.0 (build 3.6.0-216.0.dev)
    • DevTools version 2.39.0
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn

[✓] Windows Version (Installed version of Windows is version 10 or higher)

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
    • Android SDK at X:\Android\SDK
    • Platform android-35, build-tools 35.0.0
    • ANDROID_HOME = X:\Android\SDK
    • ANDROID_SDK_ROOT = X:\Android\SDK
    • Java binary at: X:\IDEs\AndroidStudio\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 17.0.11+0--11852314)
    • All Android licenses accepted.

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listfound in release: 3.24Found to occur in 3.24found in release: 3.25Found to occur in 3.25has reproducible stepsThe issue has been confirmed reproducible and is ready to work onp: video_playerThe Video Player pluginpackageflutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyr: fixedIssue is closed as already fixed in a newer versionteam-androidOwned by Android platform teamtriaged-androidTriaged by Android platform team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions