mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-27 09:41:20 -08:00
refactor: Update artplayer-plugin-vtt-thumbnail version to 1.0.3
This commit is contained in:
1 parent
44171beb3a
commit
c44ec85ed2
8 files changed
+14
-12
No files matched your search
@@ -4,7 +4,7 @@ export default function artplayerPluginVttThumbnail(option) {
|
||||
return async (art) => {
|
||||
const {
|
||||
constructor: {
|
||||
utils: { setStyle, isMobile },
|
||||
utils: { setStyle, isMobile, addClass },
|
||||
},
|
||||
template: { $progress },
|
||||
} = art;
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user