VLC ActiveX in Visual Studio

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
BigTuna99
New Cone
New Cone
Posts: 1
Joined: 15 Oct 2008 22:07

VLC ActiveX in Visual Studio

Postby BigTuna99 » 15 Oct 2008 22:16

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?

klsc
Blank Cone
Blank Cone
Posts: 30
Joined: 20 Jan 2006 15:43

Re: VLC ActiveX in Visual Studio

Postby klsc » 16 Oct 2008 08:14

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

klsc
Blank Cone
Blank Cone
Posts: 30
Joined: 20 Jan 2006 15:43

Re: VLC ActiveX in Visual Studio

Postby klsc » 16 Oct 2008 08:36

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....
Last edited by klsc on 16 Oct 2008 09:50, edited 1 time in total.

klsc
Blank Cone
Blank Cone
Posts: 30
Joined: 20 Jan 2006 15:43

Re: VLC ActiveX in Visual Studio

Postby klsc » 16 Oct 2008 08:43

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

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: VLC ActiveX in Visual Studio

Postby Jean-Baptiste Kempf » 16 Oct 2008 11:53

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.
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.

jhordies
New Cone
New Cone
Posts: 5
Joined: 06 Feb 2007 21:44

Re: VLC ActiveX in Visual Studio

Postby jhordies » 02 Dec 2008 22:39

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

klsc
Blank Cone
Blank Cone
Posts: 30
Joined: 20 Jan 2006 15:43

Re: VLC ActiveX in Visual Studio

Postby klsc » 03 Dec 2008 19:16

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

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: VLC ActiveX in Visual Studio

Postby Jean-Baptiste Kempf » 04 Dec 2008 12:33

Well, this is going to be fixed in 0.9.8
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.

klsc
Blank Cone
Blank Cone
Posts: 30
Joined: 20 Jan 2006 15:43

Re: VLC ActiveX in Visual Studio

Postby klsc » 04 Dec 2008 21:21

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

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: VLC ActiveX in Visual Studio

Postby Jean-Baptiste Kempf » 05 Dec 2008 11:36

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...
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.

jhordies
New Cone
New Cone
Posts: 5
Joined: 06 Feb 2007 21:44

Re: VLC ActiveX in Visual Studio

Postby jhordies » 14 Dec 2008 16:24

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.

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: VLC ActiveX in Visual Studio

Postby Jean-Baptiste Kempf » 15 Dec 2008 11:19

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.
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.

jhordies
New Cone
New Cone
Posts: 5
Joined: 06 Feb 2007 21:44

Re: VLC ActiveX in Visual Studio

Postby jhordies » 18 Dec 2008 17:22

Thanks,

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


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 38 guests