I want my WPF application to play video from a given stream. Tried to google, but didn't find any working example with the latest Vlc.Dotnet.Wpf
version. I have installed the latest package with NuGet and here is what I have so far:
My XAML:
<Vlc:VlcControl xmlns:Vlc="clr-namespace:Vlc.DotNet.Wpf;assembly=Vlc.DotNet.Wpf" x:Name="vlcPlayer" />
C# code:
vlcPlayer.BeginInit();
vlcPlayer.MediaPlayer.VlcLibDirectory = new DirectoryInfo(@"C:\Program Files (x86)\VideoLAN\VLC\");
vlcPlayer.EndInit();
vlcPlayer.MediaPlayer.Play(new Uri("http://79.170.191.118:1935/formula55_2/stream55_2/playlist.m3u8"));
When I run, nothing happens. However stream works fine in Vlc Player. What are my options here?
Thanks in advance.