1 | <!DOCTYPE html>
|
2 | <html>
|
3 | <head>
|
4 | <link type="text/css" rel="stylesheet" href="../node_modules/video.js/dist/video-js.min.css" />
|
5 | </head>
|
6 | <body>
|
7 | <video
|
8 | id="vid1"
|
9 | class="video-js vjs-default-skin"
|
10 | width="640" height="264"
|
11 | data-setup='{ "techOrder": ["youtube"], "sources": [{ "type": "video/youtube", "src": "https://www.youtube.com/watch?v=xjS6SftYQaQ"}] }'
|
12 | >
|
13 | </video>
|
14 |
|
15 | <script src="../node_modules/video.js/dist/video.js"></script>
|
16 | <script src="../dist/Youtube.js"></script>
|
17 | <script>
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 | videojs.setGlobalOptions({
|
24 | youtube: {
|
25 | ytControls: 2,
|
26 | rel: 1,
|
27 | autohide: 0
|
28 | }
|
29 | });
|
30 | </script>
|
31 | </body>
|
32 | </html>
|