summaryrefslogtreecommitdiff
path: root/inc/lib/webm/player.php
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2014-04-06 21:21:17 +0200
committerczaks <marcin@6irc.net>2014-04-06 21:21:17 +0200
commit781fde7789e27bf35033bfbea740d56426b4d251 (patch)
tree6bfd86bd6d5681a001c3f3b8803c0698c8244a6f /inc/lib/webm/player.php
parent0ac459d0767ffff58aa05b656ac9e0949ef32432 (diff)
move php files to a more sane directory
Diffstat (limited to 'inc/lib/webm/player.php')
-rw-r--r--inc/lib/webm/player.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/inc/lib/webm/player.php b/inc/lib/webm/player.php
new file mode 100644
index 00000000..bf4a259d
--- /dev/null
+++ b/inc/lib/webm/player.php
@@ -0,0 +1,25 @@
+<?php
+/* This file is dedicated to the public domain; you may do as you wish with it. */
+$params = '?v=' . urlencode($_GET['v']) . '&amp;t=' . urlencode($_GET['t']);
+$loop = ($_GET['loop'] != "0");
+?><!DOCTYPE html>
+<html>
+<head>
+ <meta charset="utf-8">
+ <title><?php echo htmlspecialchars($_GET['t']); ?></title>
+ <link rel="stylesheet" href="playerstyle.css">
+ <script src="settings.js"></script>
+ <script src="playersettings.js"></script>
+</head>
+<body>
+ <div id="playerheader">
+ <a id="loop0" href="<?php echo $params; ?>&amp;loop=0"<?php if (!$loop) echo ' style="font-weight: bold"'; ?>>[play once]</a>
+ <a id="loop1" href="<?php echo $params; ?>&amp;loop=1"<?php if ($loop) echo ' style="font-weight: bold"'; ?>>[loop]</a>
+ </div>
+ <div id="playercontent">
+ <video controls<?php if ($loop) echo ' loop'; ?> src="<?php echo htmlspecialchars($_GET['v']); ?>">
+ Your browser does not support HTML5 video. <a href="<?php echo htmlspecialchars($_GET['v']); ?>">[Download]</a>
+ </video>
+ </div>
+</body>
+</html>