Numerous fixes and clean-ups for the web interface.
[recordtv.git] / playonwii / play.php
blob63a4fcfc30fd048bffdcb9ea6ef629671f17d61b
1 <?php
3 include_once "functions.php";
5 $file_path = "$videos_uri/" . prepare_filename( $_GET['filename'] );
7 $width = 566;
8 $height = 330;
12 <html>
14 <head>
15 <title>Play file</title>
16 <script type="text/javascript" src="swfobject.js"></script>
17 </head>
19 <body style="background-color: black; color: white">
21 <p id='player1'>No flash player!</p>
22 <script type='text/javascript'>
23 var s1 = new SWFObject('flvplayer.swf','single','566','330','7');
24 s1.addParam('allowfullscreen','false');
25 s1.addVariable('file','<?php print "$file_path" ?>');
26 s1.addVariable('showvolume','false');
27 s1.addVariable('autostart','true');
28 s1.addVariable('displayheight','330');
29 s1.addVariable('displaywidth','566');
30 s1.addVariable('largecontrols','true');
31 s1.addVariable('overstretch','true');
32 s1.addVariable('usefullscreen','false');
33 s1.addVariable('streamscript','lighttpd');
34 s1.write('player1');
35 </script>
36 </p>
38 </body>
40 </html>