Page 1 of 1

Controlling VLC with VB

Posted: 01 Apr 2008 10:06
by daved2424
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.

Re: Controlling VLC with VB

Posted: 01 Apr 2008 14:58
by daved2424
Incase anyone is interested the solution is:

Code: Select all

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

Re: Controlling VLC with VB

Posted: 08 Apr 2008 02:33
by dx
Null should be replaced buy Array("...") in case you wanna add any conditions like recording.