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