vb.net VlcLibDirectory must be set

This forum is about all development around libVLC.
ppoint
New Cone
New Cone
Posts: 4
Joined: 20 Jan 2019 07:31

vb.net VlcLibDirectory must be set

Postby ppoint » 20 Jan 2019 07:38

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?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: vb.net VlcLibDirectory must be set

Postby Jean-Baptiste Kempf » 20 Jan 2019 20:07

Did you correctly put the libraries?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

mfkl
Developer
Developer
Posts: 739
Joined: 13 Jun 2017 10:41

Re: vb.net VlcLibDirectory must be set

Postby mfkl » 21 Jan 2019 04:03

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.
https://mfkl.github.io

ppoint
New Cone
New Cone
Posts: 4
Joined: 20 Jan 2019 07:31

Re: vb.net VlcLibDirectory must be set

Postby ppoint » 21 Jan 2019 10:15

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

mfkl
Developer
Developer
Posts: 739
Joined: 13 Jun 2017 10:41

Re: vb.net VlcLibDirectory must be set

Postby mfkl » 21 Jan 2019 11:40

Like I said, you're missing a reference. https://www.nuget.org/packages/VideoLAN.LibVLC.Windows/
https://mfkl.github.io

ppoint
New Cone
New Cone
Posts: 4
Joined: 20 Jan 2019 07:31

Re: vb.net VlcLibDirectory must be set

Postby ppoint » 21 Jan 2019 22:27

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.

mfkl
Developer
Developer
Posts: 739
Joined: 13 Jun 2017 10:41

Re: vb.net VlcLibDirectory must be set

Postby mfkl » 24 Jan 2019 11:01

VideoLAN.LibVLC.Windows installs fine in your project here. Have a look at this libvlcsharp sample https://code.videolan.org/mfkl/libvlcsh ... LCSharp.VB
https://mfkl.github.io

ppoint
New Cone
New Cone
Posts: 4
Joined: 20 Jan 2019 07:31

Re: vb.net VlcLibDirectory must be set

Postby ppoint » 24 Jan 2019 16:44

OK I will try on another computer maybe, thx!


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 22 guests