Maui icon indicating copy to clipboard operation
Maui copied to clipboard

[BUG] MediaElement 4.0.0 Volume control

Open Pmr-precure opened this issue 1 year ago • 4 comments

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 version 4.0.0 (Android) when showing a video, while having a FOREGROUND_SERVICE running, the volume bar will show. See screenshot:

shared image

This does not happen in version 3.1.1

Expected Behavior

Not showing volume bar before playing a video, while having a foreground service runnning.

Steps To Reproduce

Clone repo.

Run the project observe Volume bar when the video starts playing. (if it does not happen rerun the project)

Downgrade to version 3.1.1, observe it does not happen.

Link to public reproduction project repository

https://github.com/Pmr-precure/test_repo/tree/main

Environment

- .NET MAUI CommunityToolkit: 9.0.1
- OS: Android
- .NET MAUI: 8

Anything else?

Bare in mind, this only happens if you have a Foreground service running.

Pmr-precure avatar Jun 27 '24 11:06 Pmr-precure

@vhugogarcia can u close this please? It has been resolved via #1965

ne0rrmatrix avatar Jun 27 '24 18:06 ne0rrmatrix

@vhugogarcia can u close this please? It has been resolved via #1965

In what version? Because this happens to me in 4.0.0 but only when running a foreground service meanwhile

Pmr-precure avatar Jun 27 '24 18:06 Pmr-precure

Thanks @ne0rrmatrix and @Pmr-precure for the update.

Edit: Sorry, I clicked the close button instead of comment button, hehehe!.

I will close this issue once the new version is released with the fix. I know the fix is merged, but no new version has been released. So, I will keep an eye on it.

vhugogarcia avatar Jun 27 '24 18:06 vhugogarcia

Thanks @ne0rrmatrix and @Pmr-precure for the update.

Edit: Sorry, I clicked the close button instead of comment button, hehehe!.

I will close this issue once the new version is released with the fix. I know the fix is merged, but no new version has been released. So, I will keep an eye on it.

Thanks!

Pmr-precure avatar Jun 27 '24 18:06 Pmr-precure

Fixed in 4.0.1

Pmr-precure avatar Jul 19 '24 08:07 Pmr-precure