MAUIverse MAUIverse

Playing Audio with .NET MAUI

.NET MAUI has no built-in audio control, but every platform ships a native one. David Britch adapts his Video control into a cross-platform Audio control that plays remote, embedded, and user-selected audio.

What you’ll learn

  • Native players per platformMediaPlayer on Android, AVPlayer on iOS/Mac Catalyst, and MediaPlayerElement on WinUI
  • Handler architecture — mapping a cross-platform virtual view to native views with property and command mappers
  • Reusing video code — how much of the audio implementation shares code with the Video control, and where Android differs
  • Custom transport controls — using built-in controls or supplying your own, including a content overlay image on iOS
  • Comparison — how this differs from Plugin.Maui.Audio by Gerald Versluis and Shaun Lawrence

Read the full post for the solution structure and a link to the GitHub repo.

View Source →

← Back to Community Feed

}