summaryrefslogtreecommitdiff
path: root/player.php
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2014-04-19 00:24:52 +0200
committerczaks <marcin@6irc.net>2014-04-19 00:24:52 +0200
commitbfc4df8276f1f3577e8d40f300ed0f3f02613cd0 (patch)
treeff3a2e0d49a9c3d8058aa46df600d2b6eac674f2 /player.php
parent5b9b0abc54d2aa7f632909ecdfeb11862dffb9ae (diff)
parentbd498227f5faebad7058efeae1f7badc469d7a0e (diff)
Merge branch 'master' of github.com:vichan-devel/Tinyboard into br-integration
Diffstat (limited to 'player.php')
-rw-r--r--player.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/player.php b/player.php
new file mode 100644
index 00000000..33f02215
--- /dev/null
+++ b/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="stylesheets/webm/playerstyle.css">
+ <script src="js/webm-settings.js"></script>
+ <script src="js/webm/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>