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] Media Element Button not firing as Expected #2048

Open
2 tasks done
ne0rrmatrix opened this issue Jul 22, 2024 · 0 comments · May be fixed by #2076
Open
2 tasks done

[BUG] Media Element Button not firing as Expected #2048

ne0rrmatrix opened this issue Jul 22, 2024 · 0 comments · May be fixed by #2076
Labels
bug Something isn't working 📽️ MediaElement Issue/PR that has to do with MediaElement unverified

Comments

@ne0rrmatrix
Copy link
Contributor

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

When you start MediaElement the buttons on API level 32 and below do not behave as expected.

Expected Behavior

When you click on Pause/Play it should not just pause but also update the notification icon with current status. It does not. The button does not change if the first pause/play cycle is started from the notification tray. If you start from the player it works fine afterwards.

Steps To Reproduce

  1. Open and run sample from repo.
  2. Navigate to MediaElement page.
  3. Click on pause in notification tray before doing anything on page.
  4. Notice that the icon does not update/change.

Link to public reproduction project repository

https://github.com/CommunityToolkit/Maui/tree/main/samples

Environment

- .NET MAUI CommunityToolkit: 9.0.2
- OS: All
- .NET MAUI: 8.0.61
- .NET Maui CommunityToolkitMediaElement: 4.0.1

Anything else?

Issue is caused by a combination of threading and string interpolation. Fix incoming.

@ne0rrmatrix ne0rrmatrix added bug Something isn't working unverified labels Jul 22, 2024
@vhugogarcia vhugogarcia added the 📽️ MediaElement Issue/PR that has to do with MediaElement label Jul 22, 2024
@ne0rrmatrix ne0rrmatrix linked a pull request Sep 16, 2024 that will close this issue
6 tasks
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 unverified
Projects
None yet
2 participants