diff --git a/engine/core/VideoManager.ts b/engine/core/VideoManager.ts index 1812910..3e1846a 100644 --- a/engine/core/VideoManager.ts +++ b/engine/core/VideoManager.ts @@ -78,6 +78,12 @@ export class VideoManager { switchTo(src: string, preloadUrls: string[]) { if (!this.elA || this.switching) return + if (src === this.currentSrc) { + this.active.currentTime = 0 + this.active.play().catch(() => {}) + return + } + const inKey = this.inactiveKey const alreadyPreloaded = this.preloaded.get(inKey)