Playing Video with .NET MAUI
.NET MAUI has no built-in video control, so David Britch created a cross-platform Video view backed by native players. It plays remote, embedded, and user-selected video with built-in or custom transport controls.
What you’ll learn
- Native players per platform —
AVPlayeron iOS/Mac Catalyst andVideoViewon Android (with Windows to follow) - Handler architecture — mapping a virtual
Videoview to native views via property and command mappers - What command mappers are for — passing arguments to invoke native functionality, decoupled from the cross-platform view
- Solution structure — Controls, Handlers, and Platforms folders, plus an Android content provider for embedded assets
- Lifecycle cleanup — calling
DisconnectHandleryourself at the right point
Read the full post for the structure walkthrough and a link to the repo.