Upgrade FFmpeg to latest version (0.12.10)

Updated @ffmpeg/core from 0.12.6 to 0.12.10 and updated CDN URL references.
The newer version may have better Turbopack compatibility.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-02-25 20:39:18 +01:00
parent 87f1384175
commit 40214d9748
3 changed files with 8 additions and 8 deletions

View File

@@ -42,8 +42,8 @@ export async function loadFFmpeg(): Promise<FFmpegType> {
// Use CDN URLs for FFmpeg core - avoids "dynamic require" bundler issues
// with local file paths that FFmpeg's internal code cannot resolve at runtime
const coreURL = 'https://cdn.jsdelivr.net/npm/@ffmpeg/core@0.12.6/dist/esm/ffmpeg-core.js';
const wasmURL = 'https://cdn.jsdelivr.net/npm/@ffmpeg/core@0.12.6/dist/esm/ffmpeg-core.wasm';
const coreURL = 'https://cdn.jsdelivr.net/npm/@ffmpeg/core@0.12.10/dist/esm/ffmpeg-core.js';
const wasmURL = 'https://cdn.jsdelivr.net/npm/@ffmpeg/core@0.12.10/dist/esm/ffmpeg-core.wasm';
await ffmpegInstance.load({ coreURL, wasmURL });