.NET MAUI Gains Audio and Video Playback Support
Microsoft today released a MediaElement control for .NET MAUI, allowing apps written to the framework to play audio and video. Yes, this sounds like a small thing, perhaps something that should have been included from the beginning. But it is here now, at least.
“With MediaElement you gain a powerful control that allows you to play multimedia inside of your .NET MAUI app,” Microsoft’s Gerald Versluis explains.
MediaElement is a spiritual successor to the MediaElement control in the Xamarin Community Toolkit, but it’s been rebuilt from the ground up and is much improved. On Windows, it uses the new MediaPlayerElement from WinUI.
I just wrote about .NET MAUI desktop development yesterday. But you can learn more about this control on the Microsoft Learn website.