Maui icon indicating copy to clipboard operation
Maui copied to clipboard

[BUG] Media element rotation on Android does not work as expected

Open cagriy opened this issue 1 year ago • 1 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Did you read the "Reporting a bug" section on Contributing file?

  • [X] I have read the "Reporting a bug" section on Contributing file: https://github.com/CommunityToolkit/Maui/blob/main/CONTRIBUTING.md#reporting-a-bug

Current Behavior

When a MediaElement is rotated, on iOS both the video frame and video content are rotated together, e.g. a 90-degree rotation gives a landscape orientation without changing the app's orientation.

On Android, however, although the video frame is rotated correctly, the content stays as is.

iOS: image

Android: image

Expected Behavior

It is expected that on Android both video frame and the content rotate together, similar to iOS implementation.

Steps To Reproduce

  1. Download repo
  2. Build and run on iOS simulator
  3. Run on Android simulator

Link to public reproduction project repository

https://github.com/cagriy/MediaElementBug

Environment

- .NET MAUI CommunityToolkit: 3.0.1
- OS: MacOs 14.0
- .NET MAUI: 7 and 8

Anything else?

No response

cagriy avatar Dec 18 '23 17:12 cagriy

@vhugogarcia I can verify this as a bug on android. It is as described and needs to be fixed.

ne0rrmatrix avatar Jun 19 '24 19:06 ne0rrmatrix