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