From cdff1a9b5de2686370610de075c84a714826fcb2 Mon Sep 17 00:00:00 2001 From: Siddharth Date: Fri, 13 Feb 2026 21:06:49 -0800 Subject: [PATCH] fix path --- src/lib/exporter/streamingDecoder.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/exporter/streamingDecoder.ts b/src/lib/exporter/streamingDecoder.ts index 66788f0..d5610fc 100644 --- a/src/lib/exporter/streamingDecoder.ts +++ b/src/lib/exporter/streamingDecoder.ts @@ -35,8 +35,8 @@ export class StreamingVideoDecoder { const filename = videoUrl.split('/').pop() || 'video'; const file = new File([blob], filename, { type: blob.type }); - // Absolute URL required — web-demuxer loads WASM in a Worker - const wasmUrl = new URL('/wasm/web-demuxer.wasm', window.location.href).href; + // Relative URL so it resolves correctly in both dev (http) and packaged (file://) builds + const wasmUrl = new URL('./wasm/web-demuxer.wasm', window.location.href).href; this.demuxer = new WebDemuxer({ wasmFilePath: wasmUrl }); await this.demuxer.load(file);