mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-08 19:06:15 -08:00
循环播放时不展示控制栏
This commit is contained in:
1 parent
cbc38dd78a
commit
637a0ec98f
1 file changed
+3
-2
@@ -51,11 +51,12 @@ export default function eventInit(art, player) {
|
||||
// });
|
||||
|
||||
art.on('video:ended', () => {
|
||||
art.controls.show = true;
|
||||
art.mask.show = true;
|
||||
if (option.loop) {
|
||||
player.seek = 0;
|
||||
player.play = true;
|
||||
} else {
|
||||
art.controls.show = true;
|
||||
art.mask.show = true;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user