Page 1 of 1

how to set variables in vlc activex control?

Posted: 14 Sep 2006 10:43
by btwo0
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

Posted: 14 Sep 2006 11:18
by karlar
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]

Posted: 14 Sep 2006 12:32
by btwo0
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

Posted: 15 Sep 2006 11:13
by karlar
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.