From 1527261ac2120204ce66cd80e88497c6644e0eeb Mon Sep 17 00:00:00 2001 From: cocos02 Date: Fri, 12 Jun 2026 23:15:51 +0800 Subject: [PATCH] fix: ensure video unmuted in async play callbacks after loop --- engine/core/VideoManager.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/engine/core/VideoManager.ts b/engine/core/VideoManager.ts index ba7eb9e..a4ea295 100644 --- a/engine/core/VideoManager.ts +++ b/engine/core/VideoManager.ts @@ -77,6 +77,7 @@ export class VideoManager { this.elB!.style.opacity = '0' this.waitReady(this.elA).then(() => { + this.elA!.muted = false this.elA!.currentTime = 0 this.elA!.play().catch(() => {}) }) @@ -124,6 +125,7 @@ export class VideoManager { this.switching = true inactive.currentTime = 0 + inactive.muted = false inactive.play().catch(() => {}) active.style.transition = `opacity ${this.crossFadeMs}ms ease`