2013-01-11 23:02:20 -08:00
<!DOCTYPE html>
2016-04-28 15:29:40 -07:00
<html lang="en">
2013-01-11 23:02:20 -08:00
<head>
<meta charset="utf-8" />
<title>Video.js Sandbox</title>
2015-05-27 13:02:10 -07:00
<!-- Load the source files -->
2018-01-30 11:17:41 -05:00
<link href="../dist/video-js.css" rel="stylesheet" type="text/css">
2017-05-25 19:40:35 -04:00
<script src="../dist/video.js"></script>
2017-02-01 17:21:44 -05:00
<script src="../node_modules/videojs-flash/dist/videojs-flash.js"></script>
2013-01-11 23:02:20 -08:00
2013-05-28 15:29:42 -07:00
<!-- Set the location of the flash SWF -->
<script>
2017-06-26 19:51:05 -04:00
videojs.options.flash.swf = '../node_modules/videojs-flash/node_modules/videojs-swf/dist/video-js.swf';
2013-05-28 15:29:42 -07:00
</script>
2013-01-11 23:02:20 -08:00
</head>
<body>
2015-03-27 22:59:21 -07: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 10:01:44 -04:00
<pre>cp sandbox/index.html.example sandbox/index.html</pre>
2017-02-01 17:21:44 -05:00
<pre>npm run start</pre>
2015-03-27 22:59:21 -07:00
<pre>open http://localhost:9999/sandbox/index.html</pre>
</div>
2013-01-11 23:02:20 -08:00
<video id="vid1" class="video-js vjs-default-skin" controls preload="auto" width="640" height="264"
2015-12-15 14:38:09 -05:00
poster="http://vjs.zencdn.net/v/oceans.png"
2013-01-11 23:02:20 -08:00
data-setup='{}'>
2016-01-25 20:11:26 -05: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">
2018-03-23 13:25:12 -04:00
<track kind="captions" src="../docs/examples/shared/example-captions.vtt" srclang="en" label="English">
2014-05-13 14:02:02 -07: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-11 23:02:20 -08:00
</video>
<script>
2016-03-07 14:58:02 -05:00
var vid = document.getElementById("vid1");
2017-02-01 17:21:44 -05:00
var player = videojs(vid);
2013-01-11 23:02:20 -08:00
</script>
</body>
</html>