1 | <!doctype html>
|
2 | <html>
|
3 | <head>
|
4 |
|
5 | <link rel='stylesheet' href='node_modules/video.js/dist/video-js.css'>
|
6 | <script src='node_modules/video.js/dist/video.js'></script>
|
7 |
|
8 |
|
9 | <script src='dist/videojs-dock.js'></script>
|
10 | <link rel='stylesheet' href='dist/videojs-dock.css'>
|
11 |
|
12 | <style>
|
13 | .video-js {
|
14 |
|
15 | width: 840px;
|
16 | height: 350px;
|
17 | }
|
18 |
|
19 | .video-js .vjs-poster {
|
20 |
|
21 |
|
22 | }
|
23 | </style>
|
24 | </head>
|
25 |
|
26 | <body>
|
27 |
|
28 | <video class="video-js vjs-big-play-centered" controls width='600' height='250'
|
29 | poster='poster.jpg'
|
30 | >
|
31 | <source src='http://vjs.zencdn.net/v/oceans.mp4' type='video/mp4' >
|
32 | </video>
|
33 |
|
34 | <ul>
|
35 | <li><a href="/test/debug.html">Run unit tests in browser.</a></li>
|
36 | </ul>
|
37 |
|
38 | <script>
|
39 | var video = document.querySelector('video');
|
40 |
|
41 | var player = videojs(video, {
|
42 | }, function() {
|
43 | player.dock({
|
44 | title: 'Bacon ipsum dolor amet ribeye',
|
45 | description: 'Doner shank pork loin sirloin, meatloaf shankle chicken bresaola cow shoulder cupim.'
|
46 | });
|
47 |
|
48 | player.shelf.addChild('playToggle');
|
49 | });
|
50 |
|
51 |
|
52 | </script>
|
53 | </body>
|
54 | </html>
|