cross origin isolated tests to fix Atomics.wait RuntimeError

This commit is contained in:
Lucas Gelfond
2024-12-23 16:27:08 -08:00
parent 9e6ac2a0f1
commit 1a336b84c3
2 changed files with 2 additions and 2 deletions

View File

@@ -6,7 +6,7 @@ const createFFmpeg = async () => {
const ffmpeg = new FFmpeg();
await ffmpeg.load({
coreURL: CORE_URL,
thread: FFMPEG_TYPE === "mt",
thread: FFMPEG_TYPE === "mt" && crossOriginIsolated,
});
return ffmpeg;
};