Page 1 of 1

VLC ActiveX in Visual Studio

Posted: 15 Oct 2008 22:16
by BigTuna99
Okay, I don't know what I'm doing incorrectly so if someone could provide some guidance or code snippet that would be awesome. I have VLC 0.9.4 installed and I go to build a .Net 1.1 windows app with Visual Studio 2003. I add the VLC Plugin 2 to my tool box and drag it onto the form. I add a button to the form and in the click handler I've tried all sorts of combinations of setting the MRL (eg: C:\test.mp4 or file/mp4://C:\test.mp4), adding to the playlist etc, but I can't get even a simple video to play. Actually, I can't even add to the playlist without getting a "parameter incorrect" error. I've copied the dlls and plugin to my bin/Debug directory in case it wasn't finding them, but that hasn't seemed to help either. I tried uninstalling and going back to 0.8.6, but that wasn't working either, so now I'm back to 0.9.4. Ideas?

Re: VLC ActiveX in Visual Studio

Posted: 16 Oct 2008 08:14
by klsc
I have similar problems in vc6.0 and vs2008.
i have nothing found to work with 0.9.4 :(
my only way at this time, go back to 0.8.6

i hope that there is a solution

Re: VLC ActiveX in Visual Studio

Posted: 16 Oct 2008 08:36
by klsc
I have found other problems in this topic:
viewtopic.php?f=14&t=50248&st=0&sk=t&sd=a&start=15

now i take the libvlc.dll and the libvlccore.dll to my programmdir, but it does not work. then i copied all files in the vlc folder to my programmdir, and IT WORKS.

the activex play the video.

now i go testing, which dlls I need....

Re: VLC ActiveX in Visual Studio

Posted: 16 Oct 2008 08:43
by klsc
I need the
libz-1-2.dll and avcodec-51.dll to get video.
i think for other functions are more dlls needed.

for example, the filename overlay on start playing does not show, but if i put all dlls in there, the filename is shown

Re: VLC ActiveX in Visual Studio

Posted: 16 Oct 2008 11:53
by Jean-Baptiste Kempf
I need the
libz-1-2.dll and avcodec-51.dll to get video.
i think for other functions are more dlls needed.

for example, the filename overlay on start playing does not show, but if i put all dlls in there, the filename is shown
Yes, this is the classic VLC manifest bug.

Re: VLC ActiveX in Visual Studio

Posted: 02 Dec 2008 22:39
by jhordies
Hi,

Since my .NET 2.0 application wasn't working anymore after installing the latest vlc version.
I decided to migrate from the ActiveX plugin to the ActiveX plugin2 using the latest dll.
I dropped the component on my form, i changed the code to use the plugin 2 and ran the application.
I had a lot of runtime errors because of missing dlls.
I copied them to my application folder and it worked.
But should i really distribute the dlls with my application ?
Can't i just use the one from the vlc installation folder ?
I didn't have to copy all the dlls from vlc to run my application with the previous plugin.

Thanks for your help

Jerome

Re: VLC ActiveX in Visual Studio

Posted: 03 Dec 2008 19:16
by klsc
I dont know if you can distribute this.

but a little question, after you copied the dlls, all functions of the activex works???
for example, in my app, the video plays, but i can not delete entries from the playlist. and this is not practicable to me

Re: VLC ActiveX in Visual Studio

Posted: 04 Dec 2008 12:33
by Jean-Baptiste Kempf
Well, this is going to be fixed in 0.9.8

Re: VLC ActiveX in Visual Studio

Posted: 04 Dec 2008 21:21
by klsc
i hope so.
but I hope also that the next windows releases are better supported and not so buggy since the last 0.9.x, particularly the activex

Re: VLC ActiveX in Visual Studio

Posted: 05 Dec 2008 11:36
by Jean-Baptiste Kempf
i hope so.
but I hope also that the next windows releases are better supported and not so buggy since the last 0.9.x, particularly the activex

Noone works on the activex so far...

Re: VLC ActiveX in Visual Studio

Posted: 14 Dec 2008 16:24
by jhordies
I dont know if you can distribute this.

but a little question, after you copied the dlls, all functions of the activex works???
for example, in my app, the video plays, but i can not delete entries from the playlist. and this is not practicable to me
To fit with the licence we are supposed to be independent from the video plugin.
We can distribute it as long as we dont hide we are using vlc. (And we have to be able to provide the vlc sources if a user requests it)
Is it going to be fixed soon, am i doing something wrong ?

Yes with the proper dll it works.

Re: VLC ActiveX in Visual Studio

Posted: 15 Dec 2008 11:19
by Jean-Baptiste Kempf
I dont know if you can distribute this.

but a little question, after you copied the dlls, all functions of the activex works???
for example, in my app, the video plays, but i can not delete entries from the playlist. and this is not practicable to me
To fit with the licence we are supposed to be independent from the video plugin.
We can distribute it as long as we dont hide we are using vlc. (And we have to be able to provide the vlc sources if a user requests it)
Is it going to be fixed soon, am i doing something wrong ?

Yes with the proper dll it works.
0.9.8a doesn't need the dll anymore, does it?
More or less, your application should work (ie, not crash) if VLC is nor present.
And you should keep the VLC license + COPYING file, else, you are pretty fine.

Re: VLC ActiveX in Visual Studio

Posted: 18 Dec 2008 17:22
by jhordies
Thanks,

with version 0.9.8a my application runs fine without having to include the dlls into my app folder.