Semi.Avalonia.MediaPlayer 1.1.0

dotnet add package Semi.Avalonia.MediaPlayer --version 1.1.0
                    
NuGet\Install-Package Semi.Avalonia.MediaPlayer -Version 1.1.0
                    
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="Semi.Avalonia.MediaPlayer" Version="1.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Semi.Avalonia.MediaPlayer" Version="1.1.0" />
                    
Directory.Packages.props
<PackageReference Include="Semi.Avalonia.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 Semi.Avalonia.MediaPlayer --version 1.1.0
                    
#r "nuget: Semi.Avalonia.MediaPlayer, 1.1.0"
                    
#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 Semi.Avalonia.MediaPlayer@1.1.0
                    
#: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=Semi.Avalonia.MediaPlayer&version=1.1.0
                    
Install as a Cake Addin
#tool nuget:?package=Semi.Avalonia.MediaPlayer&version=1.1.0
                    
Install as a Cake Tool

Semi Theme for Avalonia MediaPlayer

This package provides a Semi Design inspired theme for Avalonia MediaPlayer.

Before you start

This package is available on NuGet for free, but it is not open source. Read the license and agree to its terms before using the package.

For source code inquiries, contact contact@irihi.tech.

Installation

Install the package with the .NET CLI:

dotnet add package Semi.Avalonia
dotnet add package Semi.Avalonia.MediaPlayer

The package targets .NET 10 and supports Avalonia desktop applications on Windows, Linux, and macOS.

Usage

Add MediaSemiTheme to your application's styles:

<Application xmlns="https://github.com/avaloniaui"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:semi="https://irihi.tech/semi"
             x:Class="YourApplication.App">
    <Application.Styles>
        <semi:SemiTheme />
        <semi:MediaSemiTheme />
    </Application.Styles>
</Application>

Use it together with the Avalonia.Controls.MediaPlayer package and the rest of your application's themes.

Safe area padding

The video player exposes the attached MediaPlayerControlAssist.SafeAreaPadding property (Thickness). While the overlay is not idle, its bottom value is the measured height of the control panel, including the seek bar; all other sides are zero. When the overlay is idle, the padding is zero.

Bind to this property when positioning content above the playback controls:

<Border Padding="{Binding #player.(semi:MediaPlayerControlAssist.SafeAreaPadding)}" />

Here, player is the name of your MediaPlayerControl.

AudioPlayer resource key

The audio player control theme is registered under the AudioPlayer resource key. Apply it to a MediaPlayerControl with a dynamic resource reference:

<MediaPlayerControl Theme="{DynamicResource AudioPlayer}" />

Add MediaSemiTheme to the application styles as shown above so the AudioPlayer resource is available.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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
1.1.0 0 10/15/2026
1.0.0 117 9/30/2026