Installation

Add the primary package

dotnet add package MediaPlayer.Controls

Add provider-contract packages when you need composition control

dotnet add package MediaPlayer.Native.Abstractions
dotnet add package MediaPlayer.Native.Interop

Runtime prerequisites

  • .NET 10 SDK to build and .NET 10 runtime to run.
  • An Avalonia 12.2 application host.
  • The Windows native playback backend uses the .NET SDK to build its helper and the .NET 10 Desktop Runtime to run it.
  • Platform media dependencies for the backend modes you enable at runtime.
  • FFmpeg and LibVLC only when you intentionally use those fallback paths.
  1. Add GpuMediaPlayer to a window.
  2. Load a known local media file.
  3. Confirm ActiveDecodeApi, ActiveRenderPath, and ActiveNativePlaybackProvider in a debug view or inspector.