Search code examples
c#android.netmauimediaelement

Using Android Media controls in System UI, with .Net MAUI


I'm trying to write a media player in.Net MAUI with the new MediaElement, and so far everything seems okay. The only issues that I'm facing is that there seems to be no support for accessing the Media Controls in the System UI, that the android API supports (see here for an example of what I'm after: https://developer.android.com/media/implement/surfaces/mobile).

All I'm trying to achieve is to display that notification with the information of what's currently being played, and to be able to call methods in my application with the controls on that UI (play, pause, seek, etc.) If anyone could point me in the right direction, it would be greatly appreciated.

I've tried googling, binging and duck-duck go-ing, all to no avail. I haven't been able to find a lead for this issue at all so far, but perhaps I just haven't searched far enough.

Thanks, Oli


Solution

  • You can use this package for playing audio and video with some extra features Such as control audio and video from notification bar or lock screen Have queue for musics, play online and...

    https://www.nuget.org/packages/Plugin.MediaManager/

    I implement a music player with maui and use this package for playing audio