Maui
Maui copied to clipboard
[BUG] Media element rotation on Android does not work as expected
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:
Android:
Expected Behavior
It is expected that on Android both video frame and the content rotate together, similar to iOS implementation.
Steps To Reproduce
- Download repo
- Build and run on iOS simulator
- 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
@vhugogarcia I can verify this as a bug on android. It is as described and needs to be fixed.