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
<PackageReference Include="Semi.Avalonia.MediaPlayer" Version="1.1.0" />
<PackageVersion Include="Semi.Avalonia.MediaPlayer" Version="1.1.0" />
<PackageReference Include="Semi.Avalonia.MediaPlayer" />
paket add Semi.Avalonia.MediaPlayer --version 1.1.0
#r "nuget: Semi.Avalonia.MediaPlayer, 1.1.0"
#:package Semi.Avalonia.MediaPlayer@1.1.0
#addin nuget:?package=Semi.Avalonia.MediaPlayer&version=1.1.0
#tool nuget:?package=Semi.Avalonia.MediaPlayer&version=1.1.0
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 | Versions 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. |
-
net10.0
- Avalonia.Controls.MediaPlayer (>= 12.0.6)
- Irihi.Avalonia.Shared (>= 0.5.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.