mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-20 04:01:20 -08:00
Fix loop bug
This commit is contained in:
1 parent
d27f07860f
commit
2bee431c2b
6 files changed
+13
-23
No files matched your search
@@ -58,11 +58,7 @@ export default function eventInit(art, player) {
|
||||
art.on('video:ended', () => {
|
||||
if (option.loop) {
|
||||
player.seek = 0;
|
||||
if (player.playing) {
|
||||
player.play();
|
||||
} else {
|
||||
player.pause();
|
||||
}
|
||||
player.play();
|
||||
art.controls.show = false;
|
||||
art.mask.show = false;
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user