From b0034e7c8ecd9cd4f21548f5dc41102e4c8eeb72 Mon Sep 17 00:00:00 2001 From: Christian Ebert Date: Mon, 4 Dec 2023 00:08:27 +0100 Subject: [PATCH] feat: support multiple sprites and individual thumbnails cf #57 for vjs6-7-compat --- README.md | 34 ++++++++++++++++++++-------------- package.json | 2 +- src/plugin.js | 10 ++++++++-- src/sprite-thumbnails.js | 27 +++++++++++++++++++++------ 4 files changed, 50 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index 4c2c030..a30eb63 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ # videojs-sprite-thumbnails -Plugin to display thumbnails from a sprite image when hovering over the progress bar. +Plugin to display thumbnails when hovering over the progress bar. ## Compatibility @@ -29,9 +29,9 @@ This plugin version is compatible with Video.js v7.x and v6.x. Compatible [relea ## Features +- works with single or multiple sprites containing thumbnails and individual thumbnail images - easy to [configure](#configuration) - uses [existing mouse time tooltip](#constraints) -- focuses on use case of thumbnails combined in a sprite image only ## Installation @@ -53,7 +53,7 @@ This is the simplest case. Get the script in whatever way you prefer and include