Skip to content

Commit

Permalink
refactor: Update artplayer-plugin-vtt-thumbnail version to 1.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
zhw2590582 committed Aug 31, 2024
1 parent 44171be commit c44ec85
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 12 deletions.
4 changes: 2 additions & 2 deletions docs/compiled/artplayer-plugin-vtt-thumbnail.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/compiled/artplayer-plugin-vtt-thumbnail.legacy.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion docs/uncompiled/artplayer-plugin-vtt-thumbnail/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/artplayer-plugin-vtt-thumbnail/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"license": "MIT",
"version": "1.0.2",
"version": "1.0.3",
"name": "artplayer-plugin-vtt-thumbnail",
"types": "types/artplayer-plugin-vtt-thumbnail.d.ts",
"description": "vtt thumbnail plugin for ArtPlayer",
Expand Down
3 changes: 2 additions & 1 deletion packages/artplayer-plugin-vtt-thumbnail/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default function artplayerPluginVttThumbnail(option) {
return async (art) => {
const {
constructor: {
utils: { setStyle, isMobile },
utils: { setStyle, isMobile, addClass },
},
template: { $progress },
} = art;
Expand Down Expand Up @@ -32,6 +32,7 @@ export default function artplayerPluginVttThumbnail(option) {
index: 20,
style: option.style || {},
mounted($control) {
addClass($control, 'art-control-thumbnails');
art.on('setBar', async (type, percentage, event) => {
const isMobileDroging = type === 'played' && event && isMobile;

Expand Down

0 comments on commit c44ec85

Please sign in to comment.