http - what is the key command in http status.xml
Posted: 24 Feb 2009 18:50
In looking over the requests/status.xml file that I use to control vlc via http, i see the following code segment:
<vlc id="if" param1="command value 'volume' strcmp 0 =" />
<vlc id="rpn" param1="val value vlc_volume_set" />
<vlc id="end"/>
<vlc id="if" param1="command value 'seek' strcmp 0 =" />
<vlc id="rpn" param1="val value vlc_seek" />
<vlc id="end"/>
<vlc id="if" param1="command value 'key' strcmp 0 =" />[/code]
<vlc id="rpn" param1="'key-' val value strcat 'VLC_OBJECT_VLC' vlc_var_get key-pressed 'VLC_OBJECT_VLC' vlc_var_set" />
<vlc id="end"/>
The volume and seek commands work for me but I'm wondering what this key command is and how to use it.
I'm kinda wondering if it can be used to let me send keyboard commands over the http interface.
<vlc id="if" param1="command value 'volume' strcmp 0 =" />
<vlc id="rpn" param1="val value vlc_volume_set" />
<vlc id="end"/>
<vlc id="if" param1="command value 'seek' strcmp 0 =" />
<vlc id="rpn" param1="val value vlc_seek" />
<vlc id="end"/>
<vlc id="if" param1="command value 'key' strcmp 0 =" />[/code]
<vlc id="rpn" param1="'key-' val value strcat 'VLC_OBJECT_VLC' vlc_var_get key-pressed 'VLC_OBJECT_VLC' vlc_var_set" />
<vlc id="end"/>
The volume and seek commands work for me but I'm wondering what this key command is and how to use it.
I'm kinda wondering if it can be used to let me send keyboard commands over the http interface.