Page 1 of 1

A little ActiveX control help...

Posted: 04 Jan 2006 18:07
by TaskyZZ
What I am doing is trying to figure out how to get control of the ActiveX control in a .Net program.

For instance, if I wanted to change the aspect ratio. With the VLC program, I just select the appropriate choice from the menu 'Video->Aspect-ratio'. But in my app, I believe I need to send the command via the getVariable/setVariable methods. Can someone give me an example how to do this. I believe if I have an example of how to do this one, then I should be able to figure out how to do mode of them.

Some documentation on the ActiveX control would be great. if there is some somewhere, can someone point me to it... If there isn't, then I will be happy to document whatever I figure out to help others get a start.

I tried:

setVariable("aspect-ratio","4x3")

but that causes an error.

Thanks.

Posted: 04 Jan 2006 19:46
by Quovodis
if you need to set the aspect ratio before playing video, then it is better to set the ratio as a playlist item option as follow in VB:
Dim options() As Variant
options() = Array(":aspect-ratio=16:9")
VLCPlugin1.addTarget "c:\video.mpg", options, VLCPlayListAppendAndGo, -666
when the video is already playing, then it can be changed using setVariable as follow:
setVariable "aspect-ratio", "4:3"
this behaviour is typical of VLC architecture as configuration options becomes variables when they are used in their context.

Posted: 04 Jan 2006 21:10
by TaskyZZ
Thanks for that. It doesn't work, not sure why. I think I may be going about this wrong.

How would I go about getting the size of the video playing in the control? I tried

getVariable ("video-x")

but it didn't work.

Thanks for the help.

Posted: 04 Jan 2006 22:02
by Schendstok
Could you provide an example to do this in Javascript with the ActiveX plug-in in Internet explorer?

I tried some options, but it doesn't seem to work

Posted: 04 Jan 2006 22:16
by TaskyZZ
I am now looking through the source code and I see a function var_Create. I searched through the code and picked out a bunch of these variables and tried using getVariable and setVariable on them, but it does not work. It just gives an error.

What should I be looking for in the source code for which of these variables I can use?