Install-Package LibVLCSharp.WPF -Version 3.6.1
dotnet add package LibVLCSharp.WPF --version 3.6.1
<PackageReference Include="LibVLCSharp.WPF" Version="3.6.1" />
paket add LibVLCSharp.WPF --version 3.6.1
#r "nuget: LibVLCSharp.WPF, 3.6.1"
// Install LibVLCSharp.WPF as a Cake Addin #addin nuget:?package=LibVLCSharp.WPF&version=3.6.1 // Install LibVLCSharp.WPF as a Cake Tool #tool nuget:?package=LibVLCSharp.WPF&version=3.6.1
LibVLCSharp.WPF is the WPF integration for LibVLCSharp.
It contains the views that allow to display a video played with LibVLCSharp in a WPF app.
LibVLCSharp.Forms.Platforms.WPF depends on this package.
This package depends on LibVLCSharp.
If you encounter UI issues with the WPF VideoView in your application, you may be running into what is called airspace limitations.
WPF control specific stuffs
Due to the Airspace issue, you cannot easily draw things over the video in WPF, unless you have a hack like the one that is included in this project. This hack means that the WPF control works a little differently than other platform's.
If you want to place something over the control, you would probably write code like this in other platforms:
<Grid> <vlc:VideoView x:Name="VideoView" /> <Button Click="Play_Clicked">PLAY</Button> </Grid>
But for WPF, you would rather need something like this:
<Grid> <vlc:VideoView x:Name="VideoView"> <Button Click="Play_Clicked">PLAY</Button> </vlc:VideoView> </Grid>
VideoView appears as a container in your XAML (you can set its
Content property from code too), but it is really a detached window over your video control.
The DataContext of the
VideoView is propagated to your overlay content. This means you can inherit the
DataContext environment from the outside of your
Note : This behavior is specific to the LibVLCSharp WPF implementation and is not (yet?) available to LibVLCSharp.Forms.Platforms.WPF
Why should I reference this package in my project?
If you want to create a video application using WPF and any supported .NET language, this package is made for you.
You can also create a true cross-platform application with Xamarin.Forms, and use the WPF backend. In that case, you would need the LibVLCSharp.Forms.Platforms.WPF package instead, which internally references this one.
For other platforms, see the main documentation.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on LibVLCSharp.WPF:
LibVLCSharp is a cross-platform audio and video API for .NET platforms based on VideoLAN's LibVLC Library. It provides a comprehensive multimedia API that can be used across mobile, server and desktop to render video and output audio. Mono, .NET Framework and .NET Core runtimes are supported. LibVLCSharp.Forms.WPF contains the Xamarin.Forms support for LibVLCSharp through custom renderers on the WPF platform. It depends on LibVLCSharp.Forms and LibVLCSharp.WPF. Xamarin.Forms support for other platforms are in different packages (namely LibVLCSharp.Forms and LibVLCSharp.Forms.GTK). LibVLC needs to be installed separately, see VideoLAN.LibVLC.* packages.
GitHub repositories (2)
Showing the top 2 popular GitHub repositories that depend on LibVLCSharp.WPF:
Free and open-source software that allows users to set animated desktop wallpapers and screensavers.