setting (general) variables with rpn

Feature requests for VLC.
Albert
Cone that earned his stripes
Cone that earned his stripes
Posts: 102
Joined: 15 Mar 2006 08:17

setting (general) variables with rpn

Postby Albert » 26 Apr 2006 09:27

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

Albert
Cone that earned his stripes
Cone that earned his stripes
Posts: 102
Joined: 15 Mar 2006 08:17

rc, http and rpn question

Postby Albert » 26 Apr 2006 10:48

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

badubo
Blank Cone
Blank Cone
Posts: 17
Joined: 18 Jan 2006 23:06

Postby badubo » 15 Aug 2006 22:25

is it possible now?


Return to “VLC media player Feature Requests”

Who is online

Users browsing this forum: No registered users and 14 guests