]> git.sesse.net Git - vlc/blob - share/lua/http/view.html
99fd531d604d1ecbe4b19396b90975380b08e42c
[vlc] / share / lua / http / view.html
1 <!--  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
2 <  view.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 xmlns="http://www.w3.org/1999/xhtml">
24
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         
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
45                                 })
46                         }
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         </script>
56         <style>
57         #window_stream { width: 800px; height: 600px; padding: 0.5em; }
58         #window_stream h3 { text-align: left; margin: 0; font-weight: normal; font-size: 12px }
59         </style>
60 </head>
61
62 <body>
63         <div id="window_stream" class="ui-widget-content">
64                 <h3 class="ui-widget-header">Streaming Output</h3>
65                 <div class="ui-widget-content">
66                         <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>
67                         <div align="center">
68                                 <div href="http://localhost:8081/stream.flv" style="display:block;width:720px;height:500px" id="player"></div>
69                         </div>
70                         <div>&nbsp;</div>
71                 </div>
72                 <div class="footer">
73                         <?vlc print(vlc.misc.version() .. " - Lua Web Interface - " .. vlc.misc.copyright()) ?>
74                 </div>
75         </div>
76         <?vlc
77
78         dialogs("stream_config_window.html");
79         ?>
80 </body>
81 </html>