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.Opacity doesn't work #1627

Closed
2 tasks done
olographio opened this issue Dec 31, 2023 · 4 comments
Closed
2 tasks done

[BUG] MediaElement.Opacity doesn't work #1627

olographio opened this issue Dec 31, 2023 · 4 comments
Labels
bug Something isn't working 📽️ MediaElement Issue/PR that has to do with MediaElement unverified

Comments

@olographio
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

Hi, the Opacity property appears to be completely ignored on the MediaElement. The element's opacity cannot even fade when the opacity of the parent is changed... It remains at 100% until the element becomes not visible anymore (IsVisible = false).

Expected Behavior

The opacity should fade the element and the parent element opacity should fade a child MediaElement as well.

Steps To Reproduce

Create a new .net8 Maui project using available VS template. Install mentionned NuGet package. Add a MediaElement on the page or add it programatically... Add some video to the app folder. Wire the image source. After you have tested that the video loads correctly. Play with the opacity, you'll see right away that it doesn't work. Look at the repo for an example, but really it's 5 lines of code.

Link to public reproduction project repository

https://bitbucket.org/ba81f149/workspace/projects/COM

Environment

- .NET MAUI CommunityToolkit: 3.0.1
- OS: Windows 11 Pro 22H2 22621.2861
- .NET MAUI: 8.0.3 on .net8
Tested on Windows WinUI platform only. Targeted framework: 10.0.19041.0

Anything else?

I suppose not many people need this, but I happen to need this. Any help is appreciated.

@olographio olographio added bug Something isn't working unverified labels Dec 31, 2023
@vhugogarcia vhugogarcia added the 📽️ MediaElement Issue/PR that has to do with MediaElement label Jan 2, 2024
@olographio olographio changed the title MediaElement.Opacity doesn't work[Bug] [BUG] MediaElement.Opacity doesn't work Jan 8, 2024
@Neotrickster
Copy link

I just noted that for some reason, Opacity only apply on controls and not in Player, but yes, this is needed to make effects with multiple media/channels

@Neotrickster
Copy link

Looks like this could be done here: #1891

@ne0rrmatrix
Copy link
Contributor

@vhugogarcia this is being discussed as a proposal to add support for texture view.

@vhugogarcia
Copy link
Contributor

Thanks @ne0rrmatrix for pointing out. Thanks @olographio for reporting the issue, however, this is not an issue but rather a new feature request which is actually being discussed on this issue: #1891

I'm closing this issue, so we all can follow-up there.

@github-actions github-actions bot locked and limited conversation to collaborators Nov 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working 📽️ MediaElement Issue/PR that has to do with MediaElement unverified
Projects
None yet
Development

No branches or pull requests

4 participants