A little ActiveX control help...

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
TaskyZZ
Blank Cone
Blank Cone
Posts: 19
Joined: 31 Dec 2005 23:57

A little ActiveX control help...

Postby TaskyZZ » 04 Jan 2006 18:07

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.

Quovodis
Cone that earned his stripes
Cone that earned his stripes
Posts: 271
Joined: 16 Jun 2004 11:13
Location: Cork, Ireland

Postby Quovodis » 04 Jan 2006 19:46

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.

TaskyZZ
Blank Cone
Blank Cone
Posts: 19
Joined: 31 Dec 2005 23:57

Postby TaskyZZ » 04 Jan 2006 21:10

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.

Schendstok
New Cone
New Cone
Posts: 6
Joined: 03 Jan 2006 22:22

Postby Schendstok » 04 Jan 2006 22:02

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

TaskyZZ
Blank Cone
Blank Cone
Posts: 19
Joined: 31 Dec 2005 23:57

Postby TaskyZZ » 04 Jan 2006 22:16

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?


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 3 guests