Avalonia.Controls.MediaPlayer 11.3.5

Prefix Reserved
dotnet add package Avalonia.Controls.MediaPlayer --version 11.3.5
                    
NuGet\Install-Package Avalonia.Controls.MediaPlayer -Version 11.3.5
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Avalonia.Controls.MediaPlayer" Version="11.3.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Avalonia.Controls.MediaPlayer" Version="11.3.5" />
                    
Directory.Packages.props
<PackageReference Include="Avalonia.Controls.MediaPlayer" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Avalonia.Controls.MediaPlayer --version 11.3.5
                    
#r "nuget: Avalonia.Controls.MediaPlayer, 11.3.5"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Avalonia.Controls.MediaPlayer@11.3.5
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Avalonia.Controls.MediaPlayer&version=11.3.5
                    
Install as a Cake Addin
#tool nuget:?package=Avalonia.Controls.MediaPlayer&version=11.3.5
                    
Install as a Cake Tool

Avalonia MediaPlayer

The Avalonia MediaPlayer component enables audio and video playback in Avalonia applications. It leverages Avalonia's composition rendering and native platform capabilities for efficient, integrated media playback.

Requirements

This package requires Avalonia Accelerate license: https://avaloniaui.net/accelerate

Quick Start

Get started quickly with the MediaPlayer component: https://docs.avaloniaui.net/accelerate/components/media-player/quickstart

Components

MediaPlayerControl Control

The MediaPlayerControl is a fully-featured UI control for media playback that provides transport controls, progress display, volume control, and video rendering. It encapsulates a MediaPlayer instance and provides a rich user interface for media playback.

<MediaPlayerControl Name="MediaPlayerControl" Source="{Binding MediaSource}" 
                    Volume="0.8"
                    LoadedBehavior="AutoPlay" />

Documentation: https://docs.avaloniaui.net/accelerate/components/media-player/mediaplayercontrol

MediaPlayer

The MediaPlayer class provides the core functionality for media playback in Avalonia applications. It handles media loading, playback control, and platform-specific backend management, serving as the engine behind the MediaPlayerControl.

It also can be used to playback audio without any UI.

// Create and initialize
var player = new MediaPlayer();
await player.InitializeAsync();

// Configure
player.Volume = 0.8;
player.LoadedBehavior = MediaPlayerLoadedBehavior.Manual;

// Load and play media
player.Source = new UriSource("https://example.com/audio.mp3");
await player.PrepareAsync();
await player.PlayAsync();

Documentation: https://docs.avaloniaui.net/accelerate/components/media-player/mediaplayer

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-android34.0 is compatible.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-ios18.0 is compatible.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.3.5 686 10/13/2025