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
9 < Authors: Antoine Cellerier <dionoea -at- videolan -dot- org>
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.
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.
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 < - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
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" />
32 <!-- input commands -->
33 <vlc id="if" param1="command value 'in_play' strcmp 0 =" />
34 <vlc id="rpn" param1="input value dup stripslashes playlist_add vlc_play" />
36 <vlc id="if" param1="command value 'in_enqueue' strcmp 0 =" />
37 <vlc id="rpn" param1="input value dup stripslashes playlist_add" />
40 <!-- playlist commands -->
41 <vlc id="if" param1="command value 'pl_play' strcmp 0 =" />
42 <vlc id="rpn" param1="id value vlc_play" />
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"/>
48 <vlc id="rpn" param1="vlc_pause" />
51 <vlc id="if" param1="command value 'pl_stop' strcmp 0 =" />
52 <vlc id="rpn" param1="vlc_stop" />
54 <vlc id="if" param1="command value 'pl_next' strcmp 0 =" />
55 <vlc id="rpn" param1="vlc_next" />
57 <vlc id="if" param1="command value 'pl_previous' strcmp 0 =" />
59 <vlc id="rpn" param1="vlc_previous" />
60 <vlc id="rpn" param1="vlc_previous" />
62 <vlc id="if" param1="command value 'pl_delete' strcmp 0 =" />
63 <vlc id="rpn" param1="id value playlist_delete" />
65 <vlc id="if" param1="command value 'pl_empty' strcmp 0 =" />
66 <vlc id="rpn" param1="playlist_empty" />
68 <vlc id="if" param1="command value 'pl_sort' strcmp 0 =" />
69 <vlc id="rpn" param1="val value id value playlist_sort" />
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" />
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" />
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" />
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" />
84 <vlc id="rpn" param1="val value services_discovery_add" />
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" />
94 <vlc id="if" param1="command value 'snapshot' strcmp 0 =" />
95 <vlc id="rpn" param1="snapshot" />
97 <vlc id="if" param1="command value 'volume' strcmp 0 =" />
98 <vlc id="rpn" param1="val value vlc_volume_set" />
100 <vlc id="if" param1="command value 'seek' strcmp 0 =" />
101 <vlc id="rpn" param1="val value vlc_seek" />
103 <vlc id="if" param1="command value 'key' strcmp 0 =" />
104 <vlc id="rpn" param1="'key-' val value strcat 'VLC_OBJECT_VLC' vlc_var_get key-pressed 'VLC_OBJECT_VLC' vlc_var_set" />
109 <volume><vlc id="value" param1="volume" /></volume>
110 <length><vlc id="value" param1="stream_length" /></length>
111 <time><vlc id="value" param1="stream_time" /></time>
112 <state><vlc id="value" param1="stream_state" /></state>
113 <position><vlc id="value" param1="stream_position" /></position>
114 <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>
115 <random><vlc id="value" param1="'random' 'VLC_OBJECT_PLAYLIST' vlc_var_get" /></random>
116 <loop><vlc id="value" param1="'loop' 'VLC_OBJECT_PLAYLIST' vlc_var_get" /></loop>
117 <repeat><vlc id="value" param1="'repeat' 'VLC_OBJECT_PLAYLIST' vlc_var_get" /></repeat>
119 <vlc id="foreach" param1="inf" param2="information" />
120 <category name="<vlc id="value" param1="inf.name xml_encode" />">
121 <vlc id="foreach" param1="subinf" param2="inf.info" />
122 <info name="<vlc id="value" param1="subinf.name xml_encode" />"><vlc id="value" param1="subinf.value xml_encode" /></info>
127 <title><![CDATA[<vlc id="value" param1="'TITLE' vlc_get_meta xml_encode" />]]></title>
128 <artist><![CDATA[<vlc id="value" param1="'ARTIST' vlc_get_meta xml_encode" />]]></artist>
129 <genre><![CDATA[<vlc id="value" param1="'GENRE' vlc_get_meta xml_encode" />]]></genre>
130 <copyright><![CDATA[<vlc id="value" param1="'COPYRIGHT' vlc_get_meta xml_encode" />]]></copyright>
131 <album><![CDATA[<vlc id="value" param1="'ALBUM' vlc_get_meta xml_encode" />]]></album>
132 <track><![CDATA[<vlc id="value" param1="'TRACK_NUMBER' vlc_get_meta xml_encode" />]]></track>
133 <description><![CDATA[<vlc id="value" param1="'DESCRIPTION' vlc_get_meta xml_encode" />]]></description>
134 <rating><![CDATA[<vlc id="value" param1="'RATING' vlc_get_meta xml_encode" />]]></rating>
135 <date><![CDATA[<vlc id="value" param1="'DATE' vlc_get_meta xml_encode" />]]></date>
136 <url><![CDATA[<vlc id="value" param1="'URL' vlc_get_meta xml_encode" />]]></url>
137 <language><![CDATA[<vlc id="value" param1="'LANGUAGE' vlc_get_meta xml_encode" />]]></language>
138 <now_playing><![CDATA[<vlc id="value" param1="'NOW_PLAYING' vlc_get_meta xml_encode" />]]></now_playing>
139 <publisher><![CDATA[<vlc id="value" param1="'PUBLISHER' vlc_get_meta xml_encode" />]]></publisher>
140 <encoded_by><![CDATA[<vlc id="value" param1="'ENCODED_BY' vlc_get_meta xml_encode" />]]></encoded_by>
141 <art_url><![CDATA[<vlc id="value" param1="'ART_URL' vlc_get_meta xml_encode" />]]></art_url>
142 <track_id><![CDATA[<vlc id="value" param1="'TRACK_ID' vlc_get_meta xml_encode" />]]></track_id>
146 <readbytes><vlc id="value" param1="read_bytes" /></readbytes>
147 <inputbitrate><vlc id="value" param1="input_bitrate" /></inputbitrate>
148 <demuxreadbytes><vlc id="value" param1="demux_read_bytes" /></demuxreadbytes>
149 <demuxbitrate><vlc id="value" param1="demux_bitrate" /></demuxbitrate>
150 <decodedvideo><vlc id="value" param1="decoded_video" /></decodedvideo>
151 <displayedpictures><vlc id="value" param1="displayed_pictures" /></displayedpictures>
152 <lostpictures><vlc id="value" param1="lost_pictures" /></lostpictures>
153 <decodedaudio><vlc id="value" param1="decoded_audio" /></decodedaudio>
154 <playedabuffers><vlc id="value" param1="played_abuffers" /></playedabuffers>
155 <lostabuffers><vlc id="value" param1="lost_abuffers" /></lostabuffers>
156 <sentpackets><vlc id="value" param1="sent_packets" /></sentpackets>
157 <sentbytes><vlc id="value" param1="sent_bytes" /></sentbytes>
158 <sendbitrate><vlc id="value" param1="send_bitrate" /></sendbitrate>