CommunityToolkit / Maui

The .NET MAUI Community Toolkit is a community-created library that contains .NET MAUI Extensions, Advanced UI/UX Controls, and Behaviors to help make your life as a .NET MAUI developer easier
https://learn.microsoft.com/dotnet/communitytoolkit/maui
MIT License
2.19k stars 375 forks source link

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

Open cagriy opened 8 months ago

cagriy commented 8 months ago

Is there an existing issue for this?

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

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

ne0rrmatrix commented 2 months ago

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