]> git.sesse.net Git - vlc/blob - share/lua/http/mobile.html
luahttp: add doctype
[vlc] / share / lua / http / mobile.html
1 <!--  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
2 <  mobile.html: VLC media player web interface - VLM
3 < - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
4 <  Copyright (C) 2005-2006 the VideoLAN team
5 <  $Id$
6 <
7 <  Authors: Brandon Brooks <bwbrooks -at- archmageinc -dot- com>
8 <
9 <  This program is free software; you can redistribute it and/or modify
10 <  it under the terms of the GNU General Public License as published by
11 <  the Free Software Foundation; either version 2 of the License, or
12 <  (at your option) any later version.
13 <
14 <  This program is distributed in the hope that it will be useful,
15 <  but WITHOUT ANY WARRANTY; without even the implied warranty of
16 <  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 <  GNU General Public License for more details.
18 <
19 <  You should have received a copy of the GNU General Public License
20 <  along with this program; if not, write to the Free Software
21 <  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
22 < - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
23 <html>
24         <head>
25                 <title>VLC media player - Web Interface</title>
26                 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
27                 <meta name="viewport" content="width=device-width; user-scalable=no" />
28                 <link href="favicon.ico" type="image/x-icon" rel="shortcut icon" />
29                 <script type="text/javascript" src="js/common.js"></script>
30                 <link type="text/css" href="css/ui-lightness/jquery-ui-1.8.13.custom.css" rel="stylesheet" />
31                 <link type="text/css" href="css/main.css" rel="stylesheet" />
32                 <script type="text/javascript" src="js/jquery-1.5.1.min.js"></script>
33                 <script type="text/javascript" src="js/jquery-ui-1.8.13.custom.min.js"></script>
34                 <script type="text/javascript" src="js/jquery.jstree.js"></script>
35                 <script type="text/javascript" src="http://static.flowplayer.org/js/flowplayer-3.2.6.min.js"></script>
36                 <script type="text/javascript" src="js/ui.js"></script>
37                 <script type="text/javascript" src="js/controlers.js"></script>
38                 <script type="text/javascript">
39                         var pollStatus  =       true;
40                         $(function(){
41                                 $('#buttonPrev').click(function(){
42                                         sendCommand({'command':'pl_previous'});
43                                         return false;
44                                 });
45                                 $('#buttonNext').click(function(){
46                                         sendCommand({'command':'pl_next'});
47                                         return false;
48                                 });
49                                 $('#buttonOpen').click(function(){
50                                         window.location='mobile_browse.html';
51                                 });
52                                 $('#buttonEQ').click(function(){
53                                         window.location='mobile_equalizer.html';
54                                 });
55                                 $('#buttonSout').click(function(){
56                                         var file                        =         decodeURIComponent($('#buttonPlay').attr('mrl'));
57                                         if(file){
58                                                 var defaultStream       =       'new Current broadcast enabled input "'+file+'" output #transcode{vcodec=FLV1,vb=4096,fps=25,scale=1,acodec=mp3,ab=512,samplerate=44100,channels=2}:std{access='+$('#stream_protocol').val()+',mux=ffmpeg{{mux=flv}},dst=0.0.0.0:'+$('#stream_port').val()+'/'+$('#stream_file').val()+'}';
59                                                 sendVLMCmd('del Current;'+defaultStream+';control Current play','window.location="mobile_view.html"');
60                                         }
61                                         return false;
62                                 });
63                         })
64                 </script>
65         </head>
66         <body>
67                 <div id="main">
68                         <table width="100%" cellpadding="0" cellspacing="0" style="height:100%" border="0">
69
70                                 <tr>
71                                         <td valign="top" height="130px">
72                                                 <img id="albumArt" src="/art" width="141px" height="130px" alt="Album Art" style="border:2px solid #000000;"/>
73                                         </td>
74                                         <td valign="top" width="125px"  class="ui-widget-content" rowspan="2">
75                                                 <div id="buttonOpen" class="button48  ui-corner-all" title="Open Media"></div>
76                                                 <div id="buttonFull" class="button48  ui-corner-all" title="Full Screen"></div>
77                                                 <div id="buttonEQ" class="button48 ui-corner-all" title="Equalizer"></div>
78                                                 <div id="buttonSout" class="button48  ui-corner-all" title="Easy Stream"></div
79                                         </td>
80                                 </tr>
81                                 <tr>
82                                         <td>&nbsp;</td>
83                                 </tr>
84                                 <tr>
85                                         <td colspan="2" valign="bottom" height="60px">
86                                                 <div id="volumeSlider" title="Volume" style="width:98%; margin-left:10px; font-size:30px;"><img src="images/speaker-32.png" class="ui-slider-handle" alt="volume"/></div>
87                                         </td>
88                                 </tr>
89                                 <tr>
90                                         <td colspan="2" valign="bottom" height="20px">
91                                                 <div id="mediaTitle" class="dynamic"></div>
92                                         </td>
93                                 </tr>
94                                 <tr>
95                                         <td id="controlButtons" colspan="2" valign="bottom" height="108px;" class="ui-widget-content">
96                                                 <div align="center">
97                                                         <div id="buttonPrev" class="button48  ui-corner-all" title="Previous"></div>
98                                                         <div id="buttonPlay" class="button48  ui-corner-all" title="Play"></div>
99                                                         <div id="buttonNext" class="button48  ui-corner-all" title="Next"></div>
100                                                         <div id="buttonStop" class="button48  ui-corner-all" title="Stop"></div>
101                                                 </div>
102                                                 <div id="seekSlider" title="Seek Time" style="width:98%; margin-left:10px;font-size:30px;"></div>
103                                                 <table width="100%">
104                                                         <tr>
105                                                                 <td>
106                                                                         <div id="currentTime" class="dynamic">00:00:00</div>
107                                                                 </td>
108                                                                 <td>
109                                                                         <div id="totalTime" class="dynamic">00:00:00</div>
110                                                                 </td>
111                                                         </tr>
112                                                 </table>
113                                         </td>
114                                 </tr>
115                         </table>
116                 </div>
117                 <?vlc
118
119         dialogs("stream_config_window.html");
120         ?>
121         </body>
122 </html>