forked from brightcove/videojs-thumbnails
-
Notifications
You must be signed in to change notification settings - Fork 25
/
example.html
36 lines (35 loc) · 1.04 KB
/
example.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<!doctype html>
<html>
<head>
<title>Video.js Thumbnails Example</title>
<link href="node_modules/video.js/dist/video-js/video-js.css" rel="stylesheet">
<link href="videojs.thumbnails.css" rel="stylesheet">
<style>
p {
background-color: #eee;
border: thin solid #777;
padding: 10px;
}
</style>
<script src="node_modules/video.js/dist/video-js/video.js"></script>
<script src='videojs.thumbnails.js'></script>
</head>
<body>
<p>The thumbnails plugin displays a series of images over the player
progress bar when the viewer hovers over it or drags the playhead
around to seek. Give it a shot:</p>
<video id='video'
class='video-js vjs-default-skin'
width='640'
height='264'
poster='http://video-js.zencoder.com/oceans-clip.jpg'
controls>
<source src='http://video-js.zencoder.com/oceans-clip.mp4' type='video/mp4' />
<track kind="metadata" src="oceans.vtt"></track>
</video>
<script>
// initialize video.js
var video = videojs('video',{plugins:{thumbnails:{}}});
</script>
</body>
</html>