]> git.sesse.net Git - vlc/blob - share/http/requests/status.xml
main, functions.js, slider_*.png : add position slider
[vlc] / share / http / requests / status.xml
1 <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
2 <vlc id="if" param1="0"/>
3 <!--  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
4 <  status.xml: VLC media player web interface
5 < - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
6 <  Copyright (C) 2005-2006 the VideoLAN team
7 <  $Id$
8
9 <  Authors: Antoine Cellerier <dionoea -at- videolan -dot- org>
10
11 <  This program is free software; you can redistribute it and/or modify
12 <  it under the terms of the GNU General Public License as published by
13 <  the Free Software Foundation; either version 2 of the License, or
14 <  (at your option) any later version.
15
16 <  This program is distributed in the hope that it will be useful,
17 <  but WITHOUT ANY WARRANTY; without even the implied warranty of
18 <  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19 <  GNU General Public License for more details.
20
21 <  You should have received a copy of the GNU General Public License
22 <  along with this program; if not, write to the Free Software
23 <  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
24 < - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
25 <vlc id="end"/>
26 <vlc id="if" param1="url_param 1 =" />
27   <vlc id="rpn" param1="input 'input' url_extract store" />
28   <vlc id="rpn" param1="command 'command' url_extract store" />
29   <vlc id="rpn" param1="id 'id' url_extract store" />
30   <vlc id="rpn" param1="val 'val' url_extract store" />
31
32   <!-- input commands -->
33   <vlc id="if" param1="command value 'in_play' strcmp 0 =" />
34     <vlc id="rpn" param1="input value dup playlist_add vlc_play" />
35   <vlc id="end" />
36   <vlc id="if" param1="command value 'in_enqueue' strcmp 0 =" />
37     <vlc id="rpn" param1="input value dup playlist_add" />
38   <vlc id="end" />
39
40   <!-- playlist commands -->
41   <vlc id="if" param1="command value 'pl_play' strcmp 0 =" />
42     <vlc id="rpn" param1="id value vlc_play" />
43   <vlc id="end" />
44   <vlc id="if" param1="command value 'pl_pause' strcmp 0 =" />
45     <vlc id="rpn" param1="vlc_pause" />
46   <vlc id="end" />
47   <vlc id="if" param1="command value 'pl_stop' strcmp 0 =" />
48     <vlc id="rpn" param1="vlc_stop" />
49   <vlc id="end" />
50   <vlc id="if" param1="command value 'pl_next' strcmp 0 =" />
51     <vlc id="rpn" param1="vlc_next" />
52   <vlc id="end" />
53   <vlc id="if" param1="command value 'pl_previous' strcmp 0 =" />
54     <!-- FIXME -->
55     <vlc id="rpn" param1="vlc_previous" />
56     <vlc id="rpn" param1="vlc_previous" />
57   <vlc id="end" />
58   <vlc id="if" param1="command value 'pl_delete' strcmp 0 =" />
59     <vlc id="rpn" param1="id value playlist_delete" />
60   <vlc id="end" />
61   <vlc id="if" param1="command value 'pl_empty' strcmp 0 =" />
62     <vlc id="rpn" param1="playlist_empty" />
63   <vlc id="end" />
64   <vlc id="if" param1="command value 'pl_sort' strcmp 0 =" />
65     <vlc id="rpn" param1="" /> <!-- FIXME -->
66   <vlc id="end" />
67   <vlc id="if" param1="command value 'pl_random' strcmp 0 =" />
68     <vlc id="rpn" param1="'random' 'VLC_OBJECT_PLAYLIST' vlc_var_get ! 'random' 'VLC_OBJECT_PLAYLIST' vlc_var_set" />
69   <vlc id="end" />
70   <vlc id="if" param1="command value 'pl_loop' strcmp 0 =" />
71     <vlc id="rpn" param1="'loop' 'VLC_OBJECT_PLAYLIST' vlc_var_get ! 'loop' 'VLC_OBJECT_PLAYLIST' vlc_var_set" />
72   <vlc id="end" />
73   <vlc id="if" param1="command value 'pl_repeat' strcmp 0 =" />
74     <vlc id="rpn" param1="'repeat' 'VLC_OBJECT_PLAYLIST' vlc_var_get 1 + 2 % 'repeat' 'VLC_OBJECT_PLAYLIST' vlc_var_set" />
75   <vlc id="end" />
76
77   <!-- misc commands -->
78   <vlc id="if" param1="command value 'fullscreen' strcmp 0 =" />
79     <vlc id="if" param1="'VLC_OBJECT_VOUT' vlc_obj_exists" />
80       <vlc id="rpn" param1="'fullscreen' 'VLC_OBJECT_VOUT' vlc_var_get ! 'fullscreen' 'VLC_OBJECT_VOUT' vlc_var_set" />
81     <vlc id="end" />
82   <vlc id="end" />
83   <vlc id="if" param1="command value 'volume' strcmp 0 =" />
84     <vlc id="rpn" param1="val value vlc_volume_set" />
85   <vlc id="end"/>
86   <vlc id="if" param1="command value 'seek' strcmp 0 =" />
87     <vlc id="rpn" param1="val value vlc_seek" />
88   <vlc id="end"/>
89
90 <vlc id="end" />
91 <root>
92   <volume><vlc id="value" param1="volume" /></volume>
93   <length><vlc id="value" param1="stream_length" /></length>
94   <time><vlc id="value" param1="stream_time" /></time>
95   <state><vlc id="value" param1="stream_state" /></state>
96   <position><vlc id="value" param1="stream_position" /></position>
97   <fullscreen><vlc id="if" param1="'VLC_OBJECT_VOUT' vlc_obj_exists" /><vlc id="value" param1="'fullscreen' 'VLC_OBJECT_VOUT' vlc_var_get" /><vlc id="end" /></fullscreen>
98   <loop><vlc id="value" param1="'loop' 'VLC_OBJECT_PLAYLIST' vlc_var_get"/></loop>
99   <repeat><vlc id="value" param1="'repeat' 'VLC_OBJECT_PLAYLIST' vlc_var_get" /></repeat>
100 </root>