循环播放时不展示控制栏

This commit is contained in:
Harvey committed 2019-12-11 16:51:06 +08:00
1 parent cbc38dd78a
commit 637a0ec98f
1 file changed
+3 -2
+3 -2
View File
@@ -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;
}
});