how to set variables in vlc activex control?

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
btwo0
Blank Cone
Blank Cone
Posts: 17
Joined: 19 Jul 2006 06:37

how to set variables in vlc activex control?

Postby btwo0 » 14 Sep 2006 10:43

hi all,

i would like to resize the playing window when the video is playing.

i think maybe i can set "position" variable to resize, but i failed.

could anyone give me an example to set variable?

thanks

karlar
Blank Cone
Blank Cone
Posts: 73
Joined: 12 Jun 2006 12:25

Postby karlar » 14 Sep 2006 11:18

try this

Code: Select all

function mSetVlcSize() { if(playing == 1) { vlc.style.height= 0+""; vlc.style.width= 0+""; vlc.style.width= 100+""; vlc.style.height= 100+""; } else { vlc.style.height= 0+""; vlc.style.width= 0+""; } }
[/code]

btwo0
Blank Cone
Blank Cone
Posts: 17
Joined: 19 Jul 2006 06:37

Postby btwo0 » 14 Sep 2006 12:32

thank karlar, however, the answer is not directly to my question.

i did not write any code, just use "avtviex control test container" in vc.net to test some methods like "setVariable" in vlc activex.

i type the variable name as "position" and the variable value as "5". Then i choose the "getVariable" option but no variable getted.

i think the way i set variable is wrong.

thanks again

karlar
Blank Cone
Blank Cone
Posts: 73
Joined: 12 Jun 2006 12:25

Postby karlar » 15 Sep 2006 11:13

Yeah i am sorry. see you point.
I am not so much into .net so i cant help you.

I know that the setVariable and getVariable dont work with many of the options.


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 60 guests