FlyleafME 2.0.0-preview.1
dotnet add package FlyleafME --version 2.0.0-preview.1
NuGet\Install-Package FlyleafME -Version 2.0.0-preview.1
<PackageReference Include="FlyleafME" Version="2.0.0-preview.1" />
<PackageVersion Include="FlyleafME" Version="2.0.0-preview.1" />
<PackageReference Include="FlyleafME" />
paket add FlyleafME --version 2.0.0-preview.1
#r "nuget: FlyleafME, 2.0.0-preview.1"
#:package FlyleafME@2.0.0-preview.1
#addin nuget:?package=FlyleafME&version=2.0.0-preview.1&prerelease
#tool nuget:?package=FlyleafME&version=2.0.0-preview.1&prerelease
FlyleafME
FlyleafME is a reusable WPF media player control powered by FlyleafLib. It combines a video surface with customizable playback controls, a queue and slideshow, subtitles, on-screen messages, and dockable panels.
FlyleafME is the successor to the FlyleafLib.Controls.WPF package. The new package ID and assembly are FlyleafME, and the public namespace is Flyleaf.Controls.WPF.
Install
Use a WPF project targeting net10.0-windows.
dotnet add package FlyleafME --prerelease
Omit --prerelease when installing a stable release. The package brings in the managed FlyleafLib dependency. Put the compatible native FFmpeg DLLs in an FFmpeg folder beside your executable and choose a project platform that matches the DLLs, such as x64. Flyleaf downloads
Quick start
In this example, the WPF project is named PlayerDemo and App.xaml has StartupUri="MainWindow.xaml". Use your project's namespace in the XAML and code.
Start the engine in App.xaml.cs
Initialize the engine once on the UI thread, before creating any players.
using System;
using System.IO;
using System.Windows;
using FlyleafLib;
namespace PlayerDemo;
public partial class App : Application
{
protected override void OnStartup(StartupEventArgs e)
{
Engine.Start(new EngineConfig
{
FFmpegPath = Path.Combine(AppContext.BaseDirectory, "FFmpeg")
});
base.OnStartup(e);
}
}
Add the control in MainWindow.xaml
<Window x:Class="PlayerDemo.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:me="clr-namespace:Flyleaf.Controls.WPF;assembly=FlyleafME"
Title="FlyleafME Demo" Width="800" Height="450">
<DockPanel>
<Button DockPanel.Dock="Top" Content="Open file" Click="OpenFile_Click"/>
<me:FlyleafME x:Name="Media">
<me:FlyleafME.OverlayContent>
<me:FlyleafOverlayLayout>
<me:FlyleafOverlayLayout.BottomContent>
<me:FlyleafPlaybackBar x:Name="PlaybackBar"/>
</me:FlyleafOverlayLayout.BottomContent>
</me:FlyleafOverlayLayout>
</me:FlyleafME.OverlayContent>
</me:FlyleafME>
</DockPanel>
</Window>
Connect the player in MainWindow.xaml.cs
using System;
using System.Windows;
using FlyleafLib.MediaPlayer;
namespace PlayerDemo;
public partial class MainWindow : Window
{
private readonly Player player;
public MainWindow()
{
InitializeComponent();
player = new Player();
Media.Player = player;
Media.RegisterDefaultPanels();
PlaybackBar.MediaElement = Media;
}
private void OpenFile_Click(object sender, RoutedEventArgs e) => Media.OpenFile();
protected override void OnClosed(EventArgs e)
{
PlaybackBar.MediaElement = null;
Media.Player = null;
Media.Dispose();
player.Dispose();
base.OnClosed(e);
}
}
Open a local file with the button. Playback starts automatically with the default player settings. To open a path or URL from code, call Media.OpenInput(pathOrUrl) on the UI thread.
Customize the control
- Use
UIConfigto change appearance, playback bar behavior, subtitle styling, on-screen messages, and mouse gestures - Use
HeaderContentandOverlayContentto compose your own player UI - Use
RegisterDefaultPanels()for the built-in panels andRegisterPanel(...)to supply your own - Use
Media.Queuefor queue operations andMedia.Queue.AutoAdvance = trueto enable automatic progression and slideshow playback
Your application owns the player lifecycle and decides when to save settings and panel layouts. Use FlyleafUIConfigSerializer to serialize the control preferences and CapturePanelLayout() and RestorePanelLayout(...) to save and restore panel placements.
See the Flyleaf desktop player source for an example with multiple windows, profiles, and playlist management.
License
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0-windows7.0 is compatible. |
-
net10.0-windows7.0
- FlyleafLib (>= 3.12.0 && < 4.0.0)
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 |
|---|---|---|
| 2.0.0-preview.1 | 0 | 11/20/2026 |
First preview of the composed FlyleafME WPF control for .NET 10.