Page 1 of 1

vb.net VlcLibDirectory must be set

Posted: 20 Jan 2019 07:38
by ppoint
Using vb.net, added the 3 references like vlc.dotnet.core etc, added control to a form, and I've set the code for the VlcLibDirectoryNeeded correctly. And I have VLC installed.
But when I run the application (and this form), then I get the error VlcLibDirectory must be set.
This error occurs when the form is created and apparently before the VlcLibDirectoryNeeded is executed.
What am I missing?

Re: vb.net VlcLibDirectory must be set

Posted: 20 Jan 2019 20:07
by Jean-Baptiste Kempf
Did you correctly put the libraries?

Re: vb.net VlcLibDirectory must be set

Posted: 21 Jan 2019 04:03
by mfkl
added the 3 references
What are they? Do they include VideoLAN.LibVLC.Windows?

Try to adapt the vlc.dotnet C# sample to vb. Else share the code.

Re: vb.net VlcLibDirectory must be set

Posted: 21 Jan 2019 10:15
by ppoint
C# sample seems to be working, but not in vb, and I don't see the difference.
Here is the code. thx!
https://1drv.ms/u/s!AumRZ4Qd6Vz0ks5Z7SguHMD-sc4wzQ

Re: vb.net VlcLibDirectory must be set

Posted: 21 Jan 2019 11:40
by mfkl
Like I said, you're missing a reference. https://www.nuget.org/packages/VideoLAN.LibVLC.Windows/

Re: vb.net VlcLibDirectory must be set

Posted: 21 Jan 2019 22:27
by ppoint
I tried to install that windows lib but that did not help. When I retry now, I see that the installation is never finishing. I just rebooted and retried. Same result.

Attempting to gather dependency information for package 'VideoLAN.LibVLC.Windows.3.0.6' with respect to project 'WindowsApp2', targeting '.NETFramework,Version=v4.6.1'
Gathering dependency information took 45.16 ms
Attempting to resolve dependencies for package 'VideoLAN.LibVLC.Windows.3.0.6' with DependencyBehavior 'Lowest'
Resolving dependency information took 0 ms
Resolving actions to install package 'VideoLAN.LibVLC.Windows.3.0.6'
Resolved actions to install package 'VideoLAN.LibVLC.Windows.3.0.6'
Retrieving package 'VideoLAN.LibVLC.Windows 3.0.6' from 'nuget.org'.
GET https://api.nuget.org/v3-flatcontainer/ ... .0.6.nupkg
OK https://api.nuget.org/v3-flatcontainer/ ... .0.6.nupkg 692ms
Installing VideoLAN.LibVLC.Windows 3.0.6.

Can you try to add this windows lib on your side to my project? Or suggest another solution. Thanks for your help so far.

Re: vb.net VlcLibDirectory must be set

Posted: 24 Jan 2019 11:01
by mfkl
VideoLAN.LibVLC.Windows installs fine in your project here. Have a look at this libvlcsharp sample https://code.videolan.org/mfkl/libvlcsh ... LCSharp.VB

Re: vb.net VlcLibDirectory must be set

Posted: 24 Jan 2019 16:44
by ppoint
OK I will try on another computer maybe, thx!