Skip to content

Commit

Permalink
Apply plugin to sample player
Browse files Browse the repository at this point in the history
  • Loading branch information
phloxic committed Apr 26, 2018
1 parent 79bbea1 commit 2f8d75a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Binary file added img/oceans-thumbs.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 8 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>videojs-sprite-thumbnails Demo</title>
<link href="node_modules/video.js/dist/video-js.css" rel="stylesheet">

</head>
<body>
<video id="videojs-sprite-thumbnails-player" class="video-js vjs-default-skin" controls>
Expand All @@ -13,15 +13,20 @@
</video>
<ul>
<li><a href="test/">Run unit tests in browser.</a></li>

</ul>
<script src="node_modules/es5-shim/es5-shim.js"></script>
<script src="node_modules/video.js/dist/video.js"></script>
<script src="dist/videojs-sprite-thumbnails.js"></script>
<script>
(function(window, videojs) {
var player = window.player = videojs('videojs-sprite-thumbnails-player');
player.spriteThumbnails();
player.spriteThumbnails({
// interval: 1 // (default)
url: 'img/oceans-thumbs.jpg',
width: 240,
height: 100
});
}(window, window.videojs));
</script>
</body>
Expand Down

0 comments on commit 2f8d75a

Please sign in to comment.