fix miniProgressBar

This commit is contained in:
Harvey Zack committed 2022-04-27 21:46:37 +08:00
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}%`;
}
});
},
});
});