]> git.sesse.net Git - vlc/blob - share/http-lua/requests/vlm_cmd.xml
Mozilla : use \n
[vlc] / share / http-lua / requests / vlm_cmd.xml
1 <?xml version="1.0" encoding="utf-8" standalone="yes" ?<?vlc print '>'
2 --[[
3 <!--  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
4 <  vlm_cmd.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 ]]?>
26 <vlm><error><?vlc
27 if _GET["command"] then
28   local msg = vlc.vlm.execute_command(vlm,_GET["command"])
29   if msg.value then
30     print(msg.name,":",msg.value)
31   end
32 else
33 ?>No command<?vlc
34 end
35 ?></error>
36 </vlm>