1 <?xml version="1.0" encoding="utf-8" standalone="yes" ?<?vlcprint'>'?>
4 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
5 < status.xml: VLC media player web interface
6 < - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
7 < Copyright (C) 2005-2009 the VideoLAN team
10 < Authors: Antoine Cellerier <dionoea -at- videolan -dot- org>
11 < Rob Jonson <rob -at- hobbyistsoftware -dot- com>
13 < This program is free software; you can redistribute it and/or modify
14 < it under the terms of the GNU General Public License as published by
15 < the Free Software Foundation; either version 2 of the License, or
16 < (at your option) any later version.
18 < This program is distributed in the hope that it will be useful,
19 < but WITHOUT ANY WARRANTY; without even the implied warranty of
20 < MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 < GNU General Public License for more details.
23 < You should have received a copy of the GNU General Public License
24 < along with this program; if not, write to the Free Software
25 < Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
26 < - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
31 --package.loaded.httprequests = nil --uncomment to debug changes
32 require "httprequests"
34 httprequests.processcommands()
36 local statusTable=httprequests.getstatus(false)
39 httprequests.printTableAsXml(statusTable,0)
41 local item = vlc.input.item()
43 --data in the information section is presented in a non-standard way to keep compatibility.
47 <category name="meta">
50 local metas = item:metas()
51 for k,v in pairs(metas) do
52 print("<info name='"..k.."'>"..vlc.strings.convert_xml_special_chars(v).."</info>")
59 local info = item:info()
60 for k, v in pairs(info) do
61 print("<category name='"..k.."'>")
62 for k2, v2 in pairs(v) do
63 print("<info name='"..k2.."'>"..vlc.strings.convert_xml_special_chars(v2).."</info>")
73 local stats = item:stats()
74 for k,v in pairs(stats) do
75 local tag = string.gsub(k,"_","")
76 print("<"..tag..">"..tostring(v).."</"..tag..">\n")