WPFにてVLC再生について質問させて頂きます。
https://qiita.com/Gnico/items/5ecd8a6f66fa98e3e91c
こちらのサイトを参考にさせて頂きましてVlc.DotNet.Wpfをインストールして
下記のコードで実行したのですが画面が黒くなるだけで再生されません。
System.IO.DirectoryInfoのフォルダには下記のdllが入っています。
Vlc.DotNet.Core.dll
Vlc.DotNet.Core.Interops.dll
Vlc.DotNet.Forms.dll
Vlc.DotNet.Wpf.dll
何が不足していますでしょうか?
ご教授お願いします。
xaml
1 xmlns:vlc="clr-namespace:Vlc.DotNet.Wpf;assembly=Vlc.DotNet.Wpf" 2 <Grid> 3 <vlc:VlcControl x:Name="player"></vlc:VlcControl> 4 <Button Content="Button" Click="Button_Click"/> 5 </Grid>
cs
1 private void Window_Loaded(object sender, RoutedEventArgs e) 2 { 3 player.MediaPlayer.VlcLibDirectory = new 4 System.IO.DirectoryInfo(Environment.CurrentDirectory + @"\")); 5 } 6 7 private void Button_Click(object sender, RoutedEventArgs e) 8 { 9 player.MediaPlayer.Play(@"\C:***.mp4"); 10 }
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。