Merge branch 'master' of ssh://repo.or.cz/srv/git/recordtv
[recordtv.git] / playonwii / play-html5.php
blob50b0465300ca42fe166c5a4dea24d1c14924f803
1 <?php
3 include_once "functions.php";
5 $file_path = "$videos_uri/" . prepare_filename( $_GET['filename'] );
7 $dotpos = strrpos( $file_path, '.' );
8 $extension = substr( $file_path, $dotpos + 1 );
12 <html>
14 <head>
15 <title>Play file</title>
16 </head>
18 <body>
20 <video controls>
21 <source
22 src="<?php print "$file_path" ?>"
23 type="video/<?php print "$extension" ?>"
26 Your browser does not support the <code>video</code> element.
27 Download the <a href="<?php print "$file_path" ?>">Video File</a>.
28 </video>
30 <p><a href="<?php print "$file_path" ?>">Video File</a>.</p>
32 </body>
34 </html>