CommunityToolkit / CommunityToolkit/Maui

[BUG] Border around MediaElement Android 10-11

Open
#2,036 4 comments 0 reactions 0 assignees View on GitHub
📽️ MediaElement bug
Dominant language
C#
Stars
2.7k
Forks
500
Avg merge
2d 14h
Merged PRs (30d)
7

Description

### 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

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](https://github.com/user-attachments/assets/ab3c63c1-37d4-4bf4-8de3-018832ca2f51)
Android 14

![image](https://github.com/user-attachments/assets/670e3b0f-7ab0-47fc-994d-4cb5b18f3711)
Android 10

![image](https://github.com/user-attachments/assets/285be262-4291-43aa-8224-82f30ea1466a)
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

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

### Anything else?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.