mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-17 01:56:16 -08:00
fix miniProgressBar
This commit is contained in:
1 parent
be507d05e9
commit
78d042b33b
3 files changed
+12
-1
No files matched your search
@@ -5673,6 +5673,11 @@
|
||||
art.on('video:timeupdate', function () {
|
||||
$progressBar.style.width = "".concat(art.played * 100, "%");
|
||||
});
|
||||
art.on('setBar', function (type, percentage) {
|
||||
if (type === 'played') {
|
||||
$progressBar.style.width = "".concat(percentage * 100, "%");
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user