Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] MediaElement background doesn't change on iOS #1655

Open
2 tasks done
juniorsaraviao opened this issue Jan 23, 2024 · 1 comment
Open
2 tasks done

[BUG] MediaElement background doesn't change on iOS #1655

juniorsaraviao opened this issue Jan 23, 2024 · 1 comment
Labels
bug Something isn't working 📽️ MediaElement Issue/PR that has to do with MediaElement

Comments

@juniorsaraviao
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

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

Current Behavior

I'm setting the BackgroundColor property in the MediaElement but it looks like the color doesn't change on iOS (looks OK on Android).

<toolkit:MediaElement Source="https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"
                              ShouldShowPlaybackControls="False"
                              ShouldAutoPlay="True"
                              Volume="0"
                              ShouldLoopPlayback="True"
                              HeightRequest="300"
                              BackgroundColor="Red"
                              HorizontalOptions="Fill"
                              Aspect="AspectFit"
                              />

Expected Behavior

When setting the BackgroundColor property in the MediaElement, the color should be updated on iOS.

Steps To Reproduce

  1. Clone the project https://github.com/juniorsaraviao/VideoSample/tree/master.
  2. Run the project on Android and iOS.

Link to public reproduction project repository

https://github.com/juniorsaraviao/VideoSample/tree/master

Environment

- .NET MAUI CommunityToolkit: 3.0.1
- OS: macOS Sonoma 14.1.1
- .NET MAUI: 8.0.3

Anything else?

No response

@juniorsaraviao juniorsaraviao added bug Something isn't working unverified labels Jan 23, 2024
@jfversluis jfversluis added the 📽️ MediaElement Issue/PR that has to do with MediaElement label Jan 24, 2024
@ne0rrmatrix
Copy link
Contributor

@vhugogarcia I can verify the behavior on Android as being buggy. This is a simple fix that I can apply for android only.

This issue also applies to windows and cannot be fixed. It is by design on windows. MS limits access to classes and has indicated in xaml repo that is that way by design and we have no way to change it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working 📽️ MediaElement Issue/PR that has to do with MediaElement
Projects
None yet
Development

No branches or pull requests

4 participants