]> git.sesse.net Git - vlc/blob - share/http/requests/status.xml
2bfce4cb9b44127a32e045b772e060396bd7682c
[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="if" param1="stream_state value 'stop' strcmp 0 = id value 0 = ! &" />
46       <vlc id="rpn" param1="id value vlc_play"/>
47     <vlc id="else" />
48       <vlc id="rpn" param1="vlc_pause" />
49     <vlc id="end" />
50   <vlc id="end" />
51   <vlc id="if" param1="command value 'pl_stop' strcmp 0 =" />
52     <vlc id="rpn" param1="vlc_stop" />
53   <vlc id="end" />
54   <vlc id="if" param1="command value 'pl_next' strcmp 0 =" />
55     <vlc id="rpn" param1="vlc_next" />
56   <vlc id="end" />
57   <vlc id="if" param1="command value 'pl_previous' strcmp 0 =" />
58     <!-- FIXME -->
59     <vlc id="rpn" param1="vlc_previous" />
60     <vlc id="rpn" param1="vlc_previous" />
61   <vlc id="end" />
62   <vlc id="if" param1="command value 'pl_delete' strcmp 0 =" />
63     <vlc id="rpn" param1="id value playlist_delete" />
64   <vlc id="end" />
65   <vlc id="if" param1="command value 'pl_empty' strcmp 0 =" />
66     <vlc id="rpn" param1="playlist_empty" />
67   <vlc id="end" />
68   <vlc id="if" param1="command value 'pl_sort' strcmp 0 =" />
69     <vlc id="rpn" param1="val value id value playlist_sort" />
70   <vlc id="end" />
71   <vlc id="if" param1="command value 'pl_random' strcmp 0 =" />
72     <vlc id="rpn" param1="'random' 'VLC_OBJECT_PLAYLIST' vlc_var_get 1 + 2 % 'random' 'VLC_OBJECT_PLAYLIST' vlc_var_set" />
73   <vlc id="end" />
74   <vlc id="if" param1="command value 'pl_loop' strcmp 0 =" />
75     <vlc id="rpn" param1="'loop' 'VLC_OBJECT_PLAYLIST' vlc_var_get 1 + 2 %  'loop' 'VLC_OBJECT_PLAYLIST' vlc_var_set" />
76   <vlc id="end" />
77   <vlc id="if" param1="command value 'pl_repeat' strcmp 0 =" />
78     <vlc id="rpn" param1="'repeat' 'VLC_OBJECT_PLAYLIST' vlc_var_get 1 + 2 % 'repeat' 'VLC_OBJECT_PLAYLIST' vlc_var_set" />
79   <vlc id="end" />
80   <vlc id="if" param1="command value 'pl_sd' strcmp 0 =" />
81     <vlc id="if" param1="val value services_discovery_is_loaded" />
82       <vlc id="rpn" param1="val value services_discovery_remove" />
83     <vlc id="else" />
84       <vlc id="rpn" param1="val value services_discovery_add" />
85     <vlc id="end" />
86   <vlc id="end" />
87
88   <!-- misc commands -->
89   <vlc id="if" param1="command value 'fullscreen' strcmp 0 =" />
90     <vlc id="if" param1="'VLC_OBJECT_VOUT' vlc_object_exists" />
91       <vlc id="rpn" param1="'fullscreen' 'VLC_OBJECT_VOUT' vlc_var_get ! 'fullscreen' 'VLC_OBJECT_VOUT' vlc_var_set" />
92     <vlc id="end" />
93   <vlc id="end" />
94   <vlc id="if" param1="command value 'volume' strcmp 0 =" />
95     <vlc id="rpn" param1="val value vlc_volume_set" />
96   <vlc id="end"/>
97   <vlc id="if" param1="command value 'seek' strcmp 0 =" />
98     <vlc id="rpn" param1="val value vlc_seek" />
99   <vlc id="end"/>
100
101 <vlc id="end" />
102 <root>
103   <volume><vlc id="value" param1="volume" /></volume>
104   <length><vlc id="value" param1="stream_length" /></length>
105   <time><vlc id="value" param1="stream_time" /></time>
106   <state><vlc id="value" param1="stream_state" /></state>
107   <position><vlc id="value" param1="stream_position" /></position>
108   <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>
109   <random><vlc id="value" param1="'random' 'VLC_OBJECT_PLAYLIST' vlc_var_get" /></random>
110   <loop><vlc id="value" param1="'loop' 'VLC_OBJECT_PLAYLIST' vlc_var_get" /></loop>
111   <repeat><vlc id="value" param1="'repeat' 'VLC_OBJECT_PLAYLIST' vlc_var_get" /></repeat>
112   <information>
113     <vlc id="foreach" param1="inf" param2="information" />
114       <category name="<vlc id="value" param1="inf.name" />">
115         <vlc id="foreach" param1="subinf" param2="inf.info" />
116           <info name="<vlc id="value" param1="subinf.name" />"><vlc id="value" param1="subinf.value" /></info>
117         <vlc id="end" />
118       </category>
119     <vlc id="end" />
120   </information>
121 </root>