Audio control - .NET MAUI

In MAUI, there is no built-in audio control, but you can use the MediaElement from the MAUI Community Toolkit, which surfaces the following native components:

C#

var mediaElement = new MediaElement
{
    ShouldAutoPlay = true,
    Source = "TheUrlOrPathForYouAudio.mp3"
};

XAML

xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
<toolkit:MediaElement 
    Source="TheUrlOrPathForYouAudio.mp3"
    ShouldAutoPlay="True" />