Page 1 of 1

setting (general) variables with rpn

Posted: 26 Apr 2006 09:27
by Albert
Hello,
we have discussed setting variable marq-marquee with rpn function and VLM here:
viewtopic.php?t=18502

This question is about usage of rpn:
As I have tested, rpn function are not able to re-set variable marq in already running VLC.
If I try to apply rpn function vlc_var_set on several VLC_OBJECT_X, nothing will happen.
If I set marq-marquee by GUI intf and save preferences, change will manifest only in new VLC instance.
The only working way is run rc intf and set: marq-marquee myTEXT

So my question is: could be rpn function able re-set variables like marq-marquee, time_position,... dynamically in running VLC? I need to change marq-marquee with http intf for different broadcast elements.

Which OBJECT is marq-marquee variable child of? I am not able to find this.

Thank you
Albert

rc, http and rpn question

Posted: 26 Apr 2006 10:48
by Albert
Hello,
there is a definition in /trunk/modules/control/rc.c

Code: Select all

/***************************************************************************** 361 * RegisterCallbacks: Register callbacks to dynamic variables 362 *****************************************************************************/ 363 static void RegisterCallbacks( intf_thread_t *p_intf ) 364 { 365 /* Register commands that will be cleaned up upon object destruction */ ... /* marquee on the fly items */ var_Create( p_intf, "marq-marquee", VLC_VAR_VOID | VLC_VAR_ISCOMMAND ); var_AddCallback( p_intf, "marq-marquee", Other, NULL ); ...
which I suppose allows rc intf to change variables like marq-marquee by command.

My question: is it possible to add these definitions to /trunk/modules/control/http/http.c

Code: Select all

/***************************************************************************** * Local prototypes *****************************************************************************/ static void Run ( intf_thread_t *p_intf );
and use this function with rpn? (or somehow?)
Thank you
Albert

Posted: 15 Aug 2006 22:25
by badubo
is it possible now?