mirror of
https://github.com/iv-org/videojs-vtt-thumbnails.git
synced 2025-08-12 08:20:32 -04:00
Initial commit
This commit is contained in:
commit
f0a97f8e13
23 changed files with 1020 additions and 0 deletions
30
index.html
Normal file
30
index.html
Normal file
|
@ -0,0 +1,30 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>videojs-vtt-thumbnails Demo</title>
|
||||
<link href="node_modules/video.js/dist/video-js.css" rel="stylesheet">
|
||||
<link href="dist/videojs-vtt-thumbnails.css" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<video id="videojs-vtt-thumbnails-player" class="video-js vjs-default-skin" controls>
|
||||
<source src="//vjs.zencdn.net/v/oceans.mp4" type='video/mp4'>
|
||||
<source src="//vjs.zencdn.net/v/oceans.webm" type='video/webm'>
|
||||
</video>
|
||||
<ul>
|
||||
<li><a href="test/">Run unit tests in browser.</a></li>
|
||||
<li><a href="docs/api/">Read generated docs.</a></li>
|
||||
</ul>
|
||||
|
||||
<script src="node_modules/video.js/dist/video.js"></script>
|
||||
<script src="dist/videojs-vtt-thumbnails.js"></script>
|
||||
<script>
|
||||
(function(window, videojs) {
|
||||
var player = window.player = videojs('videojs-vtt-thumbnails-player');
|
||||
player.vttThumbnails({
|
||||
src: 'example/thumbs.vtt'
|
||||
});
|
||||
}(window, window.videojs));
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue