feat: audio system, demo scene updates, docs, and engine improvements

This commit is contained in:
2026-06-08 23:18:33 +08:00
parent 514c8f5207
commit 4bfdfbc27d
8 changed files with 316 additions and 24 deletions

View File

@@ -154,6 +154,11 @@ export class VideoManager {
this.active.currentTime = time
}
setMuted(muted: boolean) {
if (this.elA) this.elA.muted = muted
if (this.elB) this.elB.muted = muted
}
onEnd(cb: VideoEndCallback) {
this.onEndCallback = cb
}