Search code examples
c#visual-studiovlclibvlc

VlcLibDirectory not found


I'm using VS 2017 and coding in C#. I installed the 4 Vlc libraries to play videos in a Windows Form Application. I put a Vlc control in the form. And then, in the code, I wrote:

vlcControl1.SetMedia(curFolder + @"\media\1.mp4");
vlcControl1.Play();

When I run it, I get a "VlcLibDirectory not found". What I need to do? I see that I can set that directory through visual controls, in the VlcControl1 properties, but what is that folder?


Solution

  • The library that it needs to be loaded is libvlc.dll that is found in the folder where is installed the VLC software.