VLC 1.1.0 don't work with Visual Basic 6

This forum is about all development around libVLC.
ade74
New Cone
New Cone
Posts: 8
Joined: 11 May 2010 18:11

VLC 1.1.0 don't work with Visual Basic 6

Postby ade74 » 29 Jun 2010 15:48

Hi, I have created a Visual Basic 6 appication with VLC 1.0.5.
I have used AXVLC.DLL (VideoLan VLC ActiveX Plugin 2).
If I install VLC 1.0.5 and in Visual Basic 6 import a AXVLC.DLL (Project -> Components -> and select "VideoLan VLC ActiveX Plugin") there is no problem.
If I install VLC 1.1.0 in Visual Basic 6 I show an error when I import a component: "Name already used by module, project or object library already exists".
A AXVLC.DLL have changed from 1.0.5 to 1.1.0?

ade74
New Cone
New Cone
Posts: 8
Joined: 11 May 2010 18:11

Re: VLC 1.1.0 don't work with Visual Basic 6

Postby ade74 » 30 Jun 2010 12:56

I'm waiting for a solution. In the meantime, for people who have the same problem, I solved directly using in Visual Basic 6 the DirectShow of DirectX without a VLC ActiveX (search on Google).

nexgen
New Cone
New Cone
Posts: 1
Joined: 02 Jul 2010 11:34

Re: VLC 1.1.0 don't work with Visual Basic 6

Postby nexgen » 02 Jul 2010 11:40

Idem! I have same problem with vb6 and vlc activex!

HELP!!!

neil00
New Cone
New Cone
Posts: 3
Joined: 29 Jun 2010 21:39

Re: VLC 1.1.0 don't work with Visual Basic 6

Postby neil00 » 08 Jul 2010 11:18

First, i'm sorry for my (poor) english.

The solution is to create a dynamic VLC control.

Create a new projet with a form (called frmVlcTest) and a module with the Main procedure.
It is unnecessary to add the VLC Plugin reference.

Here is the code :

Code: Select all

Sub Main() Dim oVlc As VBControlExtender Dim fIniTimer As Single Load frmVlcTest frmVlcTest.ScaleMode = vbPixels frmVlcTest.Show Set oVlc = frmVlcTest.Controls.Add("VideoLAN.VLCPlugin", "ctrlVlc", frmVlcTest) oVlc.Move 100, 100, 400, 300 oVlc2.Visible = True oVlc.object.playlist.Add "path_to_media_file" oVlc.object.playlist.play fIniTimer = Timer Do DoEvents Loop Until Timer - fIniTimer > 3 oVlc.object.playlist.stop DoEvents ' very important unless the exe program or the vb interface crashes Set oVlc = Nothing frmVlcTest.Controls.Remove "ctrlVlc" ' very important unless the exe program crashes Unload frmVlcTest End End Sub
I have not explored all possibilities but it is a good start. :wink:

Pino1946
New Cone
New Cone
Posts: 1
Joined: 07 Aug 2010 17:14

Re: VLC 1.1.0 don't work with Visual Basic 6

Postby Pino1946 » 07 Aug 2010 17:27

Hi,

your Sub Main works well, so I have an other question.

The VLC Plugin (every version) works, with VB, only when VLC is installed; if VLC is uninstalled, the movie is not played and no error message appears.

There is a method / way to let Plugin work with VB even if VLC is not installed ?

And ... is an ocx available ?

Thank you in advance.

Pino

neil00
New Cone
New Cone
Posts: 3
Joined: 29 Jun 2010 21:39

Re: VLC 1.1.0 don't work with Visual Basic 6

Postby neil00 » 16 Sep 2010 09:25

Hi,

I think VLC must be installed because of the DLL's have to be registered to work correctly. OCX cannot be a standalone file to read media files, DLL's are needed to work.

I use Inno Setup + IS Tools to deploy VB apps. VLC installer is included in the installation package and is installed silently. I read some posts about CAB files to deploy VLC in this forum. But i prefer my solution...

I'm sorry to answer you so late


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 2 guests