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.2k stars 375 forks source link

[BUG] Border around MediaElement Android 10-11 #2036

Open Pmr-precure opened 1 month ago

Pmr-precure commented 1 month ago

Is there an existing issue for this?

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

Current Behavior

In our app we got a Border around our videos, but on Android 10 and 11 the video wont show (its playing in the background)

image Android 14

image Android 10

image If i set the controls on, then you can see them but the videos isnt showing. Pressing "FullScreen" will show the video.

Expected Behavior

Video should be visible.

Steps To Reproduce

Clone repo (Dont mind the name of it, ive used it for an old bug)

Run the sample on a Android 10 and see video isnt showing. Run it on Android 10+ and it shows just fine.

Link to public reproduction project repository

https://github.com/Pmr-precure/DisposeMediaElementBug

Environment

- .NET MAUI CommunityToolkit: 9.0.1
- OS:
- .NET MAUI: 8.0.61

Anything else?

No response

Pmr-precure commented 1 month ago

Not sure if this is a Border or MediaElement issue.

Pmr-precure commented 1 month ago

Update: It also effects Android 11.

ne0rrmatrix commented 1 month ago

@vhugogarcia Can you mark this as confirmed. I was able to verify that it does behave this way. I checked the sample and modified the repo sample and was able to replicate the behavior.

Pmr-precure commented 1 month ago

Anyone had time looking into this? :D