Page 1 of 1

Simple question! How to play MPEG using ActiveX control

Posted: 09 Nov 2005 13:41
by highlysceptical
This may seem like a naive question, but I am playing around with the ActiveX control at the moment in Visual Basic, and all I want to do is to play an MPEG file.

I have added the ActiveX control to my form, and set autoplay to true. But despite trying all sorts of settings for MRL and AddTarget, I cannot get anything to happen!

Please can someone tell me what settings are required to make the file play?

Posted: 09 Nov 2005 15:05
by MRTrevorF
movMain.addTarget(targetPath, Nothing, AXVLC.VLCPlaylistMode.VLCPlayListReplaceAndGo, -666)

I'm using 0.8.5 Beta so I think the syntax is a bit different - I don't recall ReplaceAndGo as an option in 0.8.2. You'd probably have to say:

movMain.Play()

...afterwards

Posted: 09 Nov 2005 15:31
by highlysceptical
I think that is what I am doing:-

VLCPlugin1.addTarget "d:\mpegfile.mpg", Null, VLCPlayListReplaceAndGo, -666

but nothing happens!