WFA – issues with axVLCPlugin on another system

This forum is about all development around libVLC.
vj0104
New Cone
New Cone
Posts: 1
Joined: 22 Nov 2022 18:13

WFA – issues with axVLCPlugin on another system

Postby vj0104 » 23 Nov 2022 10:04

Hi

sorry if this is in the wrong section

I’m hoping someone can help me, I have been at this for two days and I’m just stuck. I created a windows form app (.net framework), which allows the user to watch a video and extract frames where needed. My program works fine does exactly what it is meant to do, however the problem I am facing is with the axVLCPlugin. When I load the program on another system to test it, the program doesn’t launch, I know its due to the axVLCPlugin but I can’t seem to figure out why.
. I decided to use axVLC was due to the fact that it has a scroll bar, I tried to implement libVLC however there was no track bar so I created one, honestly it was a hug mess, this worked out so much better I just can’t get it to work on another system

What I have done:
- I created a form, right clicked on the toolbar, clicked choose item, navigated to the coms section, clicked browse, went to my VLC (version 3.0.17.4) install in the C drive (programs (x86)) and finally clicked axvlc.dll which allowed me to import the vlc player.
- I have installed all the necessary Nuget packages

Again, the program seems to work fine and doesn’t seem to have any issues, one of the reasons I know that the program is fine is based on what I have tired to get it to work.

What I have tried on two different systems:
- I copied the whole VideoLAN directory into the debug folder of my program, and added the axvlc.dll from there
- I have modified the target of my application to x86
- I have made sure interop.AXVLC.dll and axinterop.AXVLC.dll are within the debug folder
- On both I tried to install VLC on the other system in both the program files x86 and program files
- I have checked both systems have the right .NET framework
- I created a new form added thye axVLCPlugin and then deleted the form.

What I did to get it working on one system
- What I did to get it working on one system was to install visual studio and see where the error lies, when I opened it up all my forms were visible but the form with the axVLCPlugin, it popped up with ‘to prevent possible data loss before loading’ window, with the error ‘the variable axVLCPlugin21 is either undeclared or was never assigned’. what I did was go to the form1.Desginer.cs and removed all instances of axVLCPlugin21 which then made the form1 Designer window appear again. I then did the whole thing with the toolbar where I right click go to the VLC install location in program files and added axvlc.dll, created a new vlc media player which was called axVLCPlugin21 and it started working again

As you can see by the way I got it to work with one system it must have been down to the axVLCPlugin, however I want to re distribute this program to multiple pcs, however I don’t want to keep goring through the same thing in getting it to work.

I’m sorry if this is long I just don’t want to waste anyone’s time on things I have tired, of course I apricate all the help anyone can give me

Thank you

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

Re: WFA – issues with axVLCPlugin on another system

Postby mfkl » 01 Dec 2022 06:17

if you use .NET, don't use axVLCPlugin. It is deprecated, unmaintained and you won't get support for it.

Use libvlcsharp https://code.videolan.org/videolan/LibVLCSharp
https://mfkl.github.io

Lotesdelere
Cone Master
Cone Master
Posts: 9974
Joined: 08 Sep 2006 04:39
Location: Europe

Re: WFA – issues with axVLCPlugin on another system

Postby Lotesdelere » 01 Dec 2022 10:04

don't use axVLCPlugin. It is deprecated, unmaintained and you won't get support for it.

Remove it from official VLC binaries then :wink:


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 6 guests