luahttp: fix document parsing with inline javascript
[vlc/solaris.git] / share / lua / http / view.html
blob10ed9ffa06b246da15e8eaba94b85a51feb0ed1b
1 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
2 < view.html: VLC media player web interface - VLM
3 < - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
4 < Copyright (C) 2005-2006 the VideoLAN team
5 < $Id$
7 < Authors: Brandon Brooks <bwbrooks -at- archmageinc -dot- com>
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.
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.
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 xmlns="http://www.w3.org/1999/xhtml">
25 <head>
26 <title>VLC media player - Flash Viewer</title>
27 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
28 <link href="favicon.ico" type="image/x-icon" rel="shortcut icon"/>
29 <link type="text/css" href="css/ui-lightness/jquery-ui-1.8.13.custom.css" rel="stylesheet" />
30 <link type="text/css" href="css/main.css" rel="stylesheet" />
31 <script type="text/javascript" src="js/common.js"></script>
32 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
33 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/jquery-ui.min.js"></script>
34 <script type="text/javascript" src="http://static.flowplayer.org/js/flowplayer-3.2.6.min.js"></script>
35 <script language="javascript" type="text/javascript">
36 //<![CDATA[
37 $(function(){
38 $('#window_stream').resizable({
39 minHeight: 300,
40 minWidth: 400,
41 resize:function(event,ui){
42 $('#player').css({
43 'width':ui.size.width-80,
44 'height':ui.size.height-100
47 });
48 $('#button_stream_config').click(function(){
49 $('#window_stream_config').dialog('open');
50 });
51 $('#player').empty();
52 $('#player').attr('href',$('#stream_protocol').val()+'://'+$('#stream_host').val()+':'+$('#stream_port').val()+'/'+$('#stream_file').val());
53 flowplayer("player", "http://releases.flowplayer.org/swf/flowplayer-3.2.7.swf");
54 });
55 //]]>
56 </script>
57 <style>
58 #window_stream { width: 800px; height: 600px; padding: 0.5em; }
59 #window_stream h3 { text-align: left; margin: 0; font-weight: normal; font-size: 12px }
60 </style>
61 </head>
63 <body>
64 <div id="window_stream" class="ui-widget-content">
65 <h3 class="ui-widget-header">Streaming Output</h3>
66 <div class="ui-widget-content">
67 <div id="button_stream_config" class="button icon ui-widget ui-state-default" title="Configure" opendialog="window_stream_config"><span class="ui-icon ui-icon-wrench"></span></div>
68 <div align="center">
69 <div href="http://localhost:8081/stream.flv" style="display:block;width:720px;height:500px" id="player"></div>
70 </div>
71 <div>&nbsp;</div>
72 </div>
73 <div class="footer">
74 <?vlc print(vlc.misc.version() .. " - Lua Web Interface - " .. vlc.misc.copyright()) ?>
75 </div>
76 </div>
77 <?vlc
79 dialogs("stream_config_window.html");
81 </body>
82 </html>