From 2dc6e61e911e5b7828ebea323b994d271ecc7938 Mon Sep 17 00:00:00 2001 From: trtshen Date: Thu, 9 Apr 2026 17:23:20 +0800 Subject: [PATCH] [CORE-7691] fix ffmpeg asset URLs to use document.baseURI instead of window.location.origin window.location.origin omits the app base-href (/en-US/) so asset requests hit the SPA fallback and return index.html instead of the actual files. document.baseURI already includes the base-href, resolving to the correct path. --- projects/v3/src/app/services/ffmpeg.service.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/v3/src/app/services/ffmpeg.service.ts b/projects/v3/src/app/services/ffmpeg.service.ts index fee16834b..8bf6c5330 100644 --- a/projects/v3/src/app/services/ffmpeg.service.ts +++ b/projects/v3/src/app/services/ffmpeg.service.ts @@ -105,9 +105,9 @@ export class FfmpegService { }); await this.ffmpeg.load({ - coreURL: new URL('assets/ffmpeg/ffmpeg-core.js', window.location.origin).toString(), - wasmURL: new URL('assets/ffmpeg/ffmpeg-core.wasm', window.location.origin).toString(), - classWorkerURL: new URL('assets/ffmpeg/worker.js', window.location.origin).toString(), + coreURL: new URL('assets/ffmpeg/ffmpeg-core.js', document.baseURI).toString(), + wasmURL: new URL('assets/ffmpeg/ffmpeg-core.wasm', document.baseURI).toString(), + classWorkerURL: new URL('assets/ffmpeg/worker.js', document.baseURI).toString(), }); this.isLoaded = true;