set_int_variable() and get_int_variable() implemented yet?

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
ngybi123
New Cone
New Cone
Posts: 9
Joined: 12 Jul 2005 10:09

set_int_variable() and get_int_variable() implemented yet?

Postby ngybi123 » 20 Jul 2005 09:00

Does anyone know if the Javascript functions set_int_variable() and get_int_variable() have been implemented in VLC V0.8.2 (Windows)? I tried using the set_int_variable() function in my javascript to set the program ID of an MPTS (Multiple program transport stream) to display, but it does not work.

Has anyone succeeded in using the set_int_variable() function? How can I find out the list of variables that can be set in this function? Is this the same as the list of arguments that can specified on the command line of vlc? 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 » 20 Jul 2005 09:57

use setVariable and getVariable, the type is automatically guessed from the argument you are passing

ngybi123
New Cone
New Cone
Posts: 9
Joined: 12 Jul 2005 10:09

Postby ngybi123 » 20 Jul 2005 10:46

setVariable() and getVariable() generates a Javascript error under both IE and Mozilla Firefox. Have you used it successfully before?

Do you know where I can get a list of all the variables that can be set and get inside the plugin Javascript code? 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 » 20 Jul 2005 12:54

setVariable() and getVariable() generates a Javascript error under both IE and Mozilla Firefox. Have you used it successfully before?
yes, and the error you are getting is probably due to the fact you are using an usupported variable
Do you know where I can get a list of all the variables that can be set and get inside the plugin Javascript code? Thanks.
read the source code (yes, I am serious)

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

Postby TaskyZZ » 04 Jan 2006 19:18

setVariable() and getVariable() generates a Javascript error under both IE and Mozilla Firefox. Have you used it successfully before?
yes, and the error you are getting is probably due to the fact you are using an usupported variable
Do you know where I can get a list of all the variables that can be set and get inside the plugin Javascript code? Thanks.
read the source code (yes, I am serious)
Where in the source code, and which variable can you get access to? Any variable in the whole program?

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

Postby TaskyZZ » 04 Jan 2006 19:34

I looked through the source and tried accessing some of the varibales creatyed with var_Create but I cannot access them. I am guessing there is just a simpe trick to it, just don't know what it is... Something in the formatting of it. For instance, I am trying to change the aspect ratio of a playing video. I tried using GetVariable("aspect-ratio") and it failed, I tired using "Aspect-ratio" and it still failed. Then I tried "vout-aspect-ratio", still failed...

Can anyone give a hint at the proper way to do this?


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 34 guests