Controlling VLC with VB

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
daved2424
New Cone
New Cone
Posts: 2
Joined: 01 Apr 2008 10:01

Controlling VLC with VB

Postby daved2424 » 01 Apr 2008 10:06

I am very new to VB and the VLC ActiveX control and I am kind of stumbling in the dark here and I am not too sure what I am doing.

Basically what I am trying to do is to set the MRL of an object (my VLC player) and then play it. I can get it to play if I enter the MRL in the design stage but I want it do set latter. The code I have is:

Code: Select all

AxVLCPlugin1.MRL = fileName AxVLCPlugin1.play()
I appear to have set the MRL correctly but the clip will not play. Does anybody know what I am doing wrong?

Many thanks in advance.

daved2424
New Cone
New Cone
Posts: 2
Joined: 01 Apr 2008 10:01

Re: Controlling VLC with VB

Postby daved2424 » 01 Apr 2008 14:58

Incase anyone is interested the solution is:

Code: Select all

AxVLCPlugin1.MRL = fileName AxVLCPlugin1.addTarget(fileName, "null", AXVLC.VLCPlaylistMode.VLCPlayListAppend, 0) AxVLCPlugin1.play()

dx
New Cone
New Cone
Posts: 9
Joined: 31 May 2007 19:42

Re: Controlling VLC with VB

Postby dx » 08 Apr 2008 02:33

Null should be replaced buy Array("...") in case you wanna add any conditions like recording.


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 1 guest