GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • What's new in Avalonia 12
  • Dev ToolsVisual debugging & inspection
  • ParcelEasy app packaging
  • Hot ReloadNewLive XAML & C# editing
  • PDF ViewerNewView, search & annotate PDFs
  • ChartsInteractive data visualization
  • Rich Text EditorWYSIWYG text editing
  • Tree Data GridPowerful data grid
  • Markdown ViewerRender markdown content
  • Media PlayerVideo & audio player
  • On Screen KeyboardVirtual keyboard
  • XPF
  • Enterprise
  • Showcase

This view

  • Original page
  • New address

GeezerVison is showing avaloniaui.net — Avalonia Media Player - Cross-Platform Video & Audio Component

Seamless media playback for your apps

Robust media controls, consistent performance and built-in cross-platform support.

Start free trial
Subscribe now
Avalonia Media Player control interface

Trusted by .NET teams around the world

Features

Native video and audio on every platform you ship to.

Playback runs on each operating system's own media stack, so a single control covers macOS, Windows, Linux, iOS and Android with a transport UI you can restyle or replace.

Robust playback controls

Play, pause, seek, and control media with a native feel on all devices.

Cross-platform support

Seamlessly support media for macOS, Windows, Linux, iOS and Android without extra effort.

Customizable UI

Easily adjust player UI theming to fit your app's branding.

Start free trial
Read the docs

Setup

Simple installation and implementation.

Add the package, drop the control into your view, and bind it. There is no renderer to configure and no per-platform code to write.

Start free trial
Read the docs
1

Add the MediaPlayer package to your project

dotnet add package Avalonia.Controls.MediaPlayer
2

Add the default theme to your App.axaml

<Application.Styles>
    <FluentTheme/>

    <!-- Add this declaration for the default theme. -->
    <MediaFluentTheme/>
</Application.Styles>
3

Include your Avalonia UI license key in the executable project file .csproj

<ItemGroup>
    <AvaloniaUILicenseKey Include="YOUR_LICENSE_KEY" />
</ItemGroup>
1

Using MediaPlayerControl (recommended)

<Window xmlns="https://github.com/avaloniaui"
        Width="800" Height="450">

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

</Window>
2

Using MediaPlayer directly

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

// Set properties
player.Volume = 0.8;
player.LoadedBehavior = MediaPlayerState.AutoPlay;

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

Customer stories

"Avalonia has a very strong community, and frankly is a joy to work with."

Bill Henning

CEO & Founder, Actipro Software

Bill Henning
"Avalonia give us the performance and flexibility to build robust, cross-platform PAM solutions without compromise."

David Hervieux

CEO & Founder, Devolutions

David Hervieux
"Avalonia support team is fantastic. They respond quickly and provide clear, effective solutions."

Daniel Pañalba

Software Engineer, Unity Technologies

Daniel Pañalba
"I'm extremely pleased with Avalonia, it's great to work with. Highly recommended for cross-platform UI development."

Paul Fresquet

CEO & Founder, POW Software

Paul Fresquet

Pro features

Media Player is included with Pro.

One subscription carries all seven premium components, 70+ chart types and the advanced tooling. Nothing on this page is a separate purchase.

Included components

ChartsRich Text EditorPDF ViewerTree Data GridMarkdown Viewer
Media PlayerThis product
Virtual Keyboard
Find the right plan for you
Start free trial

FAQ

Your questions,
answered.

Can't find what you need? We're here to help.

Contact us

No. This component is part of the Avalonia Pro and Enterprise tiers. Activation requires an Avalonia account and a valid Pro or Enterprise licence.

Yes. Each component gives you a ready UI out of the box, but you can build a bespoke interface by using the underlying classes directly and wiring up your own commands and visuals.

Supported formats depend on the underlying platform. Check the component's documentation and the platform's own capability lists for specifics.

Avalonia UI components support Windows, macOS, Linux, iOS, Android, and WebAssembly. Each component uses the native platform back-end for optimal performance and compatibility.

Add media to your apps with ease

Try Media Player free for 30 days and bring reliable playback to your own app. Robust controls and consistent performance, on every platform Avalonia supports.

Start free trial
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.