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>
2018-01-30 18:17:41 +02:00
<link href="../dist/video-js.css" rel="stylesheet" type="text/css">
2017-05-26 01:40:35 +02:00
<script src="../dist/video.js"></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>
2017-02-02 00:21:44 +02:00
<pre>npm run start</pre>
2015-03-28 07:59:21 +02:00
<pre>open http://localhost:9999/sandbox/index.html</pre>
</div>
2013-01-12 10:02:20 +03:00
2018-10-10 21:30:20 +02:00
<video-js
id="vid1"
controls
preload="auto"
width="640"
height="264"
poster="http://vjs.zencdn.net/v/oceans.png">
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">
2018-03-23 19:25:12 +02:00
<track kind="captions" src="../docs/examples/shared/example-captions.vtt" srclang="en" label="English">
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>
2018-10-10 21:30:20 +02:00
</video-js>
2013-01-12 10:02:20 +03:00
<script>
2018-10-10 21:30:20 +02:00
var vid = document.getElementById('vid1');
2017-02-02 00:21:44 +02:00
var player = videojs(vid);
2013-01-12 10:02:20 +03:00
</script>
</body>
</html>