WPF VlC 实现视频的播放(1)
WPF 使用VLC实现视频的播放:网上开源代码我复制了一份: https://github.com/someonehan/Vlc.DotNet 1. 准备阶段 (I) libvlc.dll 和 libvlccore.dll 是必须的两个库 (II) 配合使用和还要有plugins文件夹下面的乱七八糟的dll,这个东西如果不好找可以在电脑上安装一个vlc播放器然后在安装目录下面就能够找到这个文件夹 2. 使用播放 (I) 在使用这个开源的控件之前需要指定VlcLibDirectory其实主要就是plugins文件夹下面乱七八糟的dll(这里面肯定有好多东西是没有用的)指定这个VlcLibDirectory我使用这两种方法: var currentAssembly = Assembly.GetEntryAssembly(); var currentDirectory = new FileInfo(currentAssembly.Location).DirectoryName; vlcControl.MediaPlayer.VlcLibDirectory = new DirectoryInfo(Path.Combine(currentDirectory, @"..\..\..\lib\x64\")); View Code vlcControl.MediaPlayer