From 95a98403221dee5ef26d237a957976857bdeb078 Mon Sep 17 00:00:00 2001 From: cocos02 Date: Fri, 12 Jun 2026 23:31:33 +0800 Subject: [PATCH] revert: undo 3 loop-start=0 freeze fixes; let creators avoid loopStart=0 --- engine/core/Engine.ts | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/engine/core/Engine.ts b/engine/core/Engine.ts index 8f72270..e14d97e 100644 --- a/engine/core/Engine.ts +++ b/engine/core/Engine.ts @@ -118,11 +118,7 @@ export class Engine { this.videoManager.onEnd(() => { if (this.loopActive && scene.loopEnd) { - const activeEl = this.videoManager.getActiveVideoElement() - if (activeEl) { - activeEl.currentTime = scene.loopStart! - setTimeout(() => activeEl.play().catch(() => {}), 0) - } + this.videoManager.seekTo(scene.loopStart!) return } if (scene.loopStart && !this.loopActive) { @@ -233,11 +229,7 @@ export class Engine { } if (this.loopActive && scene.loopEnd && time >= scene.loopEnd) { - const activeEl = this.videoManager.getActiveVideoElement() - if (activeEl) { - activeEl.currentTime = scene.loopStart - setTimeout(() => activeEl.play().catch(() => {}), 0) - } + this.videoManager.seekTo(scene.loopStart) } }