2013-01-12 10:02:20 +03:00
<!DOCTYPE html>
2016-04-29 00:29:40 +02:00
<html lang="en">
2013-01-12 10:02:20 +03:00
<head>
<meta charset="utf-8" />
<title>Video.js Sandbox</title>
2015-05-27 22:02:10 +02:00
<!-- Add ES5 shim and sham for IE8 -->
2015-06-06 03:10:39 +02:00
<script src="../build/temp/ie8/videojs-ie8.js"></script>
2013-01-12 10:02:20 +03:00
2015-05-27 22:02:10 +02:00
<!-- Load the source files -->
<link href="../build/temp/video-js.css" rel="stylesheet" type="text/css">
2015-03-28 07:59:21 +02:00
<script src="../build/temp/video.js"></script>
2013-01-12 10:02:20 +03:00
2013-05-29 01:29:42 +03:00
<!-- Set the location of the flash SWF -->
<script>
2015-08-13 16:58:24 +02:00
videojs.options.flash.swf = '../build/temp/video-js.swf';
2013-05-29 01:29:42 +03:00
</script>
2013-01-12 10:02:20 +03:00
</head>
<body>
2015-03-28 07:59:21 +02:00
<div style="background-color:#eee; border: 1px solid #777; padding: 10px; margin-bottom: 20px; font-size: .8em; line-height: 1.5em; font-family: Verdana, sans-serif;">
<p>You can use /sandbox/ for writing and testing your own code. Nothing in /sandbox/ will get checked into the repo, except files that end in .example (so don't edit or add those files). To get started make a copy of index.html.example and rename it to index.html.</p>
2015-05-29 16:01:44 +02:00
<pre>cp sandbox/index.html.example sandbox/index.html</pre>
2015-03-28 07:59:21 +02:00
<pre>grunt watch</pre>
<pre>grunt connect</pre>
<pre>open http://localhost:9999/sandbox/index.html</pre>
</div>
2013-01-12 10:02:20 +03:00
<video id="vid1" class="video-js vjs-default-skin" controls preload="auto" width="640" height="264"
2015-12-15 21:38:09 +02:00
poster="http://vjs.zencdn.net/v/oceans.png"
2013-01-12 10:02:20 +03:00
data-setup='{}'>
2016-01-26 03:11:26 +02:00
<source src="http://vjs.zencdn.net/v/oceans.mp4" type="video/mp4">
<source src="http://vjs.zencdn.net/v/oceans.webm" type="video/webm">
<source src="http://vjs.zencdn.net/v/oceans.ogv" type="video/ogg">
2015-03-28 07:59:21 +02:00
<track kind="captions" src="../docs/examples/shared/example-captions.vtt" srclang="en" label="English"></track><!-- Tracks need an ending tag thanks to IE9 -->
2014-05-14 00:02:02 +03:00
<p class="vjs-no-js">To view this video please enable JavaScript, and consider upgrading to a web browser that <a href="http://videojs.com/html5-video-support/" target="_blank">supports HTML5 video</a></p>
2013-01-12 10:02:20 +03:00
</video>
<script>
2016-03-07 21:58:02 +02:00
var vid = document.getElementById("vid1");
2013-01-12 10:02:20 +03:00
</script>
</body>
</html>