fix: play after seekTo in loop ended handler for loopStart=0

This commit is contained in:
2026-06-12 23:23:59 +08:00
parent 1527261ac2
commit ad6b6d0833

View File

@@ -119,6 +119,7 @@ export class Engine {
this.videoManager.onEnd(() => {
if (this.loopActive && scene.loopEnd) {
this.videoManager.seekTo(scene.loopStart!)
this.videoManager.getActiveVideoElement()?.play().catch(() => {})
return
}
if (scene.loopStart && !this.loopActive) {