mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-12 23:36:15 -08:00
Optimize setBar event and add lazy loading for thumbnails in artplayer-plugin-chapter
This commit is contained in:
1 parent
2e72e0cec2
commit
bc5761ecdb
3 files changed
+4
-1
No files matched your search
@@ -196,6 +196,7 @@ function artplayerPluginChapter(option = {}) {
|
||||
});
|
||||
if ($chapters.length) addClass($player, "artplayer-plugin-chapter");
|
||||
else removeClass($player, "artplayer-plugin-chapter");
|
||||
art.emit("setBar", "loaded", art.loaded || 0);
|
||||
}
|
||||
art.on("setBar", (type, percentage, event)=>{
|
||||
if (!$chapters.length) return;
|
||||
|
||||
Reference in new issue
Block a user