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;">
2018-12-05 23:12:21 +02:00
<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 run `npm start` and open the index.html</p>
<pre>npm 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"
2020-11-16 22:13:27 +02:00
poster="https://vjs.zencdn.net/v/oceans.png">
<source src="https://vjs.zencdn.net/v/oceans.mp4" type="video/mp4">
<source src="https://vjs.zencdn.net/v/oceans.webm" type="video/webm">
<source src="https://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">
2020-11-16 22:13:27 +02:00
<p class="vjs-no-js">To view this video please enable JavaScript, and consider upgrading to a web browser that <a href="https://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>