status.xml 6.78 KB
Newer Older
dionoea's avatar
dionoea committed
1
<?xml version="1.0" encoding="<vlc id="value" param1="charset"/>" standalone="yes" ?>
dionoea's avatar
dionoea committed
2
<vlc id="if" param1="0"/>
dionoea's avatar
dionoea committed
3
4
5
<!--  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
<  status.xml: VLC media player web interface
< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
6
<  Copyright (C) 2005-2006 the VideoLAN team
7
<  $Id$
dionoea's avatar
dionoea committed
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
< 
<  Authors: Antoine Cellerier <dionoea -at- videolan -dot- org>
< 
<  This program is free software; you can redistribute it and/or modify
<  it under the terms of the GNU General Public License as published by
<  the Free Software Foundation; either version 2 of the License, or
<  (at your option) any later version.
< 
<  This program is distributed in the hope that it will be useful,
<  but WITHOUT ANY WARRANTY; without even the implied warranty of
<  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
<  GNU General Public License for more details.
< 
<  You should have received a copy of the GNU General Public License
<  along with this program; if not, write to the Free Software
dionoea's avatar
dionoea committed
23
<  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
dionoea's avatar
dionoea committed
24
< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
dionoea's avatar
dionoea committed
25
<vlc id="end"/>
dionoea's avatar
dionoea committed
26
27
28
29
30
31
32
33
<vlc id="if" param1="url_param 1 =" />
  <vlc id="rpn" param1="input 'input' url_extract store" />
  <vlc id="rpn" param1="command 'command' url_extract store" />
  <vlc id="rpn" param1="id 'id' url_extract store" />
  <vlc id="rpn" param1="val 'val' url_extract store" />

  <!-- input commands -->
  <vlc id="if" param1="command value 'in_play' strcmp 0 =" />
34
    <vlc id="rpn" param1="input value dup stripslashes playlist_add vlc_play" />
dionoea's avatar
dionoea committed
35
36
  <vlc id="end" />
  <vlc id="if" param1="command value 'in_enqueue' strcmp 0 =" />
37
    <vlc id="rpn" param1="input value dup stripslashes playlist_add" />
dionoea's avatar
dionoea committed
38
39
40
41
42
43
44
  <vlc id="end" />

  <!-- playlist commands -->
  <vlc id="if" param1="command value 'pl_play' strcmp 0 =" />
    <vlc id="rpn" param1="id value vlc_play" />
  <vlc id="end" />
  <vlc id="if" param1="command value 'pl_pause' strcmp 0 =" />
45
46
47
48
49
    <vlc id="if" param1="stream_state value 'stop' strcmp 0 = id value 0 = ! &" />
      <vlc id="rpn" param1="id value vlc_play"/>
    <vlc id="else" />
      <vlc id="rpn" param1="vlc_pause" />
    <vlc id="end" />
dionoea's avatar
dionoea committed
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
  <vlc id="end" />
  <vlc id="if" param1="command value 'pl_stop' strcmp 0 =" />
    <vlc id="rpn" param1="vlc_stop" />
  <vlc id="end" />
  <vlc id="if" param1="command value 'pl_next' strcmp 0 =" />
    <vlc id="rpn" param1="vlc_next" />
  <vlc id="end" />
  <vlc id="if" param1="command value 'pl_previous' strcmp 0 =" />
    <!-- FIXME -->
    <vlc id="rpn" param1="vlc_previous" />
    <vlc id="rpn" param1="vlc_previous" />
  <vlc id="end" />
  <vlc id="if" param1="command value 'pl_delete' strcmp 0 =" />
    <vlc id="rpn" param1="id value playlist_delete" />
  <vlc id="end" />
  <vlc id="if" param1="command value 'pl_empty' strcmp 0 =" />
    <vlc id="rpn" param1="playlist_empty" />
  <vlc id="end" />
dionoea's avatar
dionoea committed
68
  <vlc id="if" param1="command value 'pl_sort' strcmp 0 =" />
69
    <vlc id="rpn" param1="val value id value playlist_sort" />
dionoea's avatar
dionoea committed
70
71
  <vlc id="end" />
  <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" />
dionoea's avatar
dionoea committed
73
74
  <vlc id="end" />
  <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" />
dionoea's avatar
dionoea committed
76
77
78
79
  <vlc id="end" />
  <vlc id="if" param1="command value 'pl_repeat' strcmp 0 =" />
    <vlc id="rpn" param1="'repeat' 'VLC_OBJECT_PLAYLIST' vlc_var_get 1 + 2 % 'repeat' 'VLC_OBJECT_PLAYLIST' vlc_var_set" />
  <vlc id="end" />
80
81
82
83
84
85
86
  <vlc id="if" param1="command value 'pl_sd' strcmp 0 =" />
    <vlc id="if" param1="val value services_discovery_is_loaded" />
      <vlc id="rpn" param1="val value services_discovery_remove" />
    <vlc id="else" />
      <vlc id="rpn" param1="val value services_discovery_add" />
    <vlc id="end" />
  <vlc id="end" />
dionoea's avatar
dionoea committed
87
88
89

  <!-- misc commands -->
  <vlc id="if" param1="command value 'fullscreen' strcmp 0 =" />
90
    <vlc id="if" param1="'VLC_OBJECT_VOUT' vlc_object_exists" />
91
92
      <vlc id="rpn" param1="'fullscreen' 'VLC_OBJECT_VOUT' vlc_var_get ! 'fullscreen' 'VLC_OBJECT_VOUT' vlc_var_set" />
    <vlc id="end" />
dionoea's avatar
dionoea committed
93
  <vlc id="end" />
yoann's avatar
yoann committed
94
95
96
  <vlc id="if" param1="command value 'snapshot' strcmp 0 =" />
    <vlc id="rpn" param1="snapshot" />
  <vlc id="end" />
dionoea's avatar
dionoea committed
97
98
  <vlc id="if" param1="command value 'volume' strcmp 0 =" />
    <vlc id="rpn" param1="val value vlc_volume_set" />
99
  <vlc id="end"/>
100
101
102
  <vlc id="if" param1="command value 'seek' strcmp 0 =" />
    <vlc id="rpn" param1="val value vlc_seek" />
  <vlc id="end"/>
dionoea's avatar
dionoea committed
103
104
105
106
107
108
109
110

<vlc id="end" />
<root>
  <volume><vlc id="value" param1="volume" /></volume>
  <length><vlc id="value" param1="stream_length" /></length>
  <time><vlc id="value" param1="stream_time" /></time>
  <state><vlc id="value" param1="stream_state" /></state>
  <position><vlc id="value" param1="stream_position" /></position>
111
  <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>
112
113
  <random><vlc id="value" param1="'random' 'VLC_OBJECT_PLAYLIST' vlc_var_get" /></random>
  <loop><vlc id="value" param1="'loop' 'VLC_OBJECT_PLAYLIST' vlc_var_get" /></loop>
dionoea's avatar
dionoea committed
114
  <repeat><vlc id="value" param1="'repeat' 'VLC_OBJECT_PLAYLIST' vlc_var_get" /></repeat>
115
116
117
118
119
120
121
122
123
  <information>
    <vlc id="foreach" param1="inf" param2="information" />
      <category name="<vlc id="value" param1="inf.name" />">
        <vlc id="foreach" param1="subinf" param2="inf.info" />
          <info name="<vlc id="value" param1="subinf.name" />"><vlc id="value" param1="subinf.value" /></info>
        <vlc id="end" />
      </category>
    <vlc id="end" />
  </information>
dionoea's avatar
dionoea committed
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
  <stats>
    <readbytes><vlc id="value" param1="read_bytes" /></readbytes>
    <inputbitrate><vlc id="value" param1="input_bitrate" /></inputbitrate>
    <demuxreadbytes><vlc id="value" param1="demux_read_bytes" /></demuxreadbytes>
    <demuxbitrate><vlc id="value" param1="demux_bitrate" /></demuxbitrate>
    <decodedvideo><vlc id="value" param1="decoded_video" /></decodedvideo>
    <displayedpictures><vlc id="value" param1="displayed_pictures" /></displayedpictures>
    <lostpictures><vlc id="value" param1="lost_pictures" /></lostpictures>
    <decodedaudio><vlc id="value" param1="decoded_audio" /></decodedaudio>
    <playedabuffers><vlc id="value" param1="played_abuffers" /></playedabuffers>
    <lostabuffers><vlc id="value" param1="lost_abuffers" /></lostabuffers>
    <sentpackets><vlc id="value" param1="sent_packets" /></sentpackets>
    <sentbytes><vlc id="value" param1="sent_bytes" /></sentbytes>
    <sendbitrate><vlc id="value" param1="send_bitrate" /></sendbitrate>
  </stats>
dionoea's avatar
dionoea committed
139
</root>