remove danmuku video:loadedmetadata

This commit is contained in:
Harvey committed 2022-05-19 09:00:39 +08:00
1 parent d3fbe7c288
commit 8a5910b530
7 files changed
+157 -161

No files matched your search

+1 -1
View File
@@ -102,7 +102,7 @@ export default function progress(options) {
}
}
art.once('video:loadedmetadata', () => {
art.on('video:loadedmetadata', () => {
for (let index = 0; index < option.highlight.length; index++) {
const item = option.highlight[index];
const left = (clamp(item.time, 0, art.duration) / art.duration) * 100;