aboutsummaryrefslogtreecommitdiffstats
path: root/docs/index.html
diff options
context:
space:
mode:
authorSam Potts <me@sampotts.me>2015-02-14 22:42:44 +1100
committerSam Potts <me@sampotts.me>2015-02-14 22:42:44 +1100
commit751d8db9d88d45b33792982103f8682e21ac876e (patch)
tree922222dd411b34a5d47d2e1453a167919dbdb417 /docs/index.html
downloadplyr-751d8db9d88d45b33792982103f8682e21ac876e.tar.lz
plyr-751d8db9d88d45b33792982103f8682e21ac876e.tar.xz
plyr-751d8db9d88d45b33792982103f8682e21ac876e.zip
WIP
Diffstat (limited to 'docs/index.html')
-rw-r--r--docs/index.html52
1 files changed, 52 insertions, 0 deletions
diff --git a/docs/index.html b/docs/index.html
new file mode 100644
index 00000000..1afbd70a
--- /dev/null
+++ b/docs/index.html
@@ -0,0 +1,52 @@
+<!doctype html>
+<html lang="en">
+<head>
+ <meta charset="utf-8" />
+ <title>Simple HTML5 Video Player</title>
+ <meta name="description" content="Custom HTML5 video controls and WebVTT captions.">
+ <meta name="author" content="Sam Potts">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+
+ <!-- Styles -->
+ <link rel="stylesheet" href="../dist/css/simple-player.css">
+ <link rel="stylesheet" href="../dist/css/docs.css">
+ </head>
+ <body class="container">
+ <header>
+ <h1>HTML5 Media Player</h1>
+ <p>A simple HTML5 media player</p>
+ </header>
+
+ <div class="player px-video-container" id="myvid">
+ <div class="px-video-img-captions-container">
+ <div class="px-video-captions hide"></div>
+ <video width="640" height="360" poster="../media/poster_PayPal_Austin2.jpg" controls>
+ <!-- video files -->
+ <source src="https://www.paypalobjects.com/webstatic/mktg/videos/PayPal_AustinSMB_baseline.mp4" type="video/mp4" />
+ <source src="https://www.paypalobjects.com/webstatic/mktg/videos/PayPal_AustinSMB_baseline.webm" type="video/webm" />
+
+ <!-- text track file -->
+ <track kind="captions" label="English captions" src="../media/captions_PayPal_Austin_en.vtt" srclang="en" default />
+
+ <!-- fallback for browsers that don't support the video element -->
+ <div>
+ <a href="https://www.paypalobjects.com/webstatic/mktg/videos/PayPal_AustinSMB_baseline.mp4">
+ <img src="../media/poster_PayPal_Austin2.jpg" width="640" height="360" alt="download video" />
+ </a>
+ </div>
+ </video>
+ </div>
+ <!-- Inject these... -->
+ <div class="px-video-controls"></div>
+ </div>
+
+ <!-- Load SVG defs -->
+ <script>(function(d,p){var a=new XMLHttpRequest(),b=d.body; a.open("GET",p,!0);a.send();a.onload=function(){var c=d.createElement("div");c.style.display="none";c.innerHTML=a.responseText;b.insertBefore(c,b.childNodes[0])}})(document,"../dist/svg/sprite.svg");</script>
+
+ <!-- Core player -->
+ <script src="../dist/js/simple-player.js"></script>
+
+ <!-- Docs setup -->
+ <script src="../dist/js/docs.js"></script>
+ </body>
+</html> \ No newline at end of file