view.html 3.41 KB
Newer Older
Brandon Brooks's avatar
Brandon Brooks committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
<!--  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
<  view.html: VLC media player web interface - VLM
< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
<  Copyright (C) 2005-2006 the VideoLAN team
<  $Id$
<
<  Authors: Brandon Brooks <bwbrooks -at- archmageinc -dot- com>
<
<  This program is free software; you can redistribute it and/or modify
<  it under the terms of the GNU General Public License as published by
<  the Free Software Foundation; either version 2 of the License, or
<  (at your option) any later version.
<
<  This program is distributed in the hope that it will be useful,
<  but WITHOUT ANY WARRANTY; without even the implied warranty of
<  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
<  GNU General Public License for more details.
<
<  You should have received a copy of the GNU General Public License
<  along with this program; if not, write to the Free Software
<  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
Elminster2031's avatar
Elminster2031 committed
23 24 25
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
26
	<title><?vlc gettext("VLC media player - Flash Viewer") ?></title>
Elminster2031's avatar
Elminster2031 committed
27
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
Brandon Brooks's avatar
Brandon Brooks committed
28
	<link href="favicon.ico" type="image/x-icon" rel="shortcut icon"/>
Elminster2031's avatar
Elminster2031 committed
29 30
	<link type="text/css" href="css/ui-lightness/jquery-ui-1.8.13.custom.css" rel="stylesheet" />
	<link type="text/css" href="css/main.css" rel="stylesheet" />
Brandon Brooks's avatar
Brandon Brooks committed
31
	<script type="text/javascript" src="js/common.js"></script>
Elminster2031's avatar
Elminster2031 committed
32
	<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
Brandon Brooks's avatar
Brandon Brooks committed
33 34
	<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/jquery-ui.min.js"></script>
	<script type="text/javascript" src="http://static.flowplayer.org/js/flowplayer-3.2.6.min.js"></script>
35
	<script type="text/javascript">
36
	//<![CDATA[
Elminster2031's avatar
Elminster2031 committed
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
	$(function(){
		$('#window_stream').resizable({
			minHeight: 300,
			minWidth: 400,
			resize:function(event,ui){
				$('#player').css({
					'width':ui.size.width-80,
					'height':ui.size.height-100
				})
			}
		});
		$('#button_stream_config').click(function(){
			$('#window_stream_config').dialog('open');
		});
		$('#player').empty();
		$('#player').attr('href',$('#stream_protocol').val()+'://'+$('#stream_host').val()+':'+$('#stream_port').val()+'/'+$('#stream_file').val());
		flowplayer("player", "http://releases.flowplayer.org/swf/flowplayer-3.2.7.swf");
	});
55
	//]]>
Elminster2031's avatar
Elminster2031 committed
56 57 58 59 60 61 62 63 64
	</script>
	<style>
	#window_stream { width: 800px; height: 600px; padding: 0.5em; }
	#window_stream h3 { text-align: left; margin: 0; font-weight: normal; font-size: 12px }
	</style>
</head>

<body>
	<div id="window_stream" class="ui-widget-content">
65
		<h3 class="ui-widget-header"><?vlc gettext("Streaming Output") ?></h3>
Elminster2031's avatar
Elminster2031 committed
66
		<div class="ui-widget-content">
67
			<div id="button_stream_config" class="button icon ui-widget ui-state-default" title="<?vlc gettext("Configure") ?>" opendialog="window_stream_config"><span class="ui-icon ui-icon-wrench"></span></div>
Elminster2031's avatar
Elminster2031 committed
68 69 70 71 72 73 74 75 76
			<div align="center">
				<div href="http://localhost:8081/stream.flv" style="display:block;width:720px;height:500px" id="player"></div>
			</div>
			<div>&nbsp;</div>
		</div>
		<div class="footer">
			<?vlc print(vlc.misc.version() .. " - Lua Web Interface - " .. vlc.misc.copyright()) ?>
		</div>
	</div>
Brandon Brooks's avatar
Brandon Brooks committed
77 78 79 80
	<?vlc

	dialogs("stream_config_window.html");
	?>
Elminster2031's avatar
Elminster2031 committed
81
</body>
82
</html>