![]() |
VOOZH | about |
dotnet add package Avalonia.Controls.MediaPlayer --version 12.0.1
NuGet\Install-Package Avalonia.Controls.MediaPlayer -Version 12.0.1
<PackageReference Include="Avalonia.Controls.MediaPlayer" Version="12.0.1" />
<PackageVersion Include="Avalonia.Controls.MediaPlayer" Version="12.0.1" />Directory.Packages.props
<PackageReference Include="Avalonia.Controls.MediaPlayer" />Project file
paket add Avalonia.Controls.MediaPlayer --version 12.0.1
#r "nuget: Avalonia.Controls.MediaPlayer, 12.0.1"
#:package Avalonia.Controls.MediaPlayer@12.0.1
#addin nuget:?package=Avalonia.Controls.MediaPlayer&version=12.0.1Install as a Cake Addin
#tool nuget:?package=Avalonia.Controls.MediaPlayer&version=12.0.1Install as a Cake Tool
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.
This package requires Avalonia Accelerate license: https://avaloniaui.net/accelerate
Get started quickly with the MediaPlayer component: https://docs.avaloniaui.net/accelerate/components/media-player/quickstart
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
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 | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-android36.0 net10.0-android36.0 is compatible. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-ios26.0 net10.0-ios26.0 is compatible. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 12.0.1 | 3,995 | 4/21/2026 |
| 12.0.0 | 1,882 | 4/7/2026 |
| 12.0.0-beta1 | 135 | 3/24/2026 |
| 11.3.11 | 9,230 | 3/13/2026 |
| 11.3.10 | 185 | 3/12/2026 |
| 11.3.9 | 1,606 | 2/11/2026 |
| 11.3.8 | 821 | 1/29/2026 |
| 11.3.7.6 | 1,449 | 1/13/2026 |
| 11.3.7.5 | 1,440 | 12/17/2025 |
| 11.3.7.4 | 399 | 12/5/2025 |
| 11.3.7.3 | 235 | 12/5/2025 |
| 11.3.7.2 | 980 | 12/3/2025 |
| 11.3.7.1 | 763 | 11/28/2025 |
| 11.3.7 | 247 | 11/28/2025 |
| 11.3.6 | 2,679 | 11/10/2025 |
| 11.3.5 | 4,046 | 10/13/2025 |
## 12.0.1
- Improved rendering stability when changing the target visual on macOS and with the VLC backend, including paused playback scenarios.
- Improved Windows Media Foundation playback reliability with fixes for frame presentation, render-thread handling, and race conditions.
- Fixed Android duration reporting for media sources that expose invalid or unavailable length values.
- Updated package compatibility for Avalonia 12.0.1 and expanded support across .NET 8 and .NET 10 targets.
## 11.3.9
- Improvements to macOS & iOS playback and concurrency guarantees. This should result in better macOS/iOS media player stability.
## 11.3.7.2
- Hotfix for VLC and Vulkan backends.