-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from PrestonN/master
Add toggle to show timestamp on hover
- Loading branch information
Showing
3 changed files
with
60 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,9 @@ Note: Plugin hides the default skin's mouse display timestamp on hover. | |
- [`<script>` Tag](#script-tag) | ||
- [Browserify/CommonJS](#browserifycommonjs) | ||
- [RequireJS/AMD](#requirejsamd) | ||
- [Options](#options) | ||
- [Example](#example) | ||
- [Available Options](#available-options) | ||
- [License](#license) | ||
|
||
<!-- END doctoc generated TOC please keep comment here to allow auto update --> | ||
|
@@ -72,6 +75,23 @@ require(['video.js', 'videojs-vtt-thumbnails'], function(videojs) { | |
}); | ||
``` | ||
|
||
## Options | ||
|
||
Options are passed in the same object as the source location. | ||
|
||
### Example | ||
|
||
```js | ||
var player = videojs('my-video'); | ||
player.vttThumbnails({ | ||
src: 'example/thumbs.vtt', | ||
showTimestamp: true | ||
}); | ||
``` | ||
### Available Options | ||
|
||
- `showTimestamp` (Boolean, Default: false) - Disables the timestamp that is shown on hover. | ||
|
||
## License | ||
|
||
MIT. Copyright (c) Chris Boustead <[email protected]> | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters