ffmpegwasm / ffmpegwasm/ffmpeg.wasm

Electron can't load with ERR_WORKER_PATH

未關閉
#85 13 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
C
星號
17.8k
分支
1.1k
PR 合併指標
30 天內沒有已合併 PR

描述

I am using ffmpeg.wasm can't work in Electron. But the same code can work in the browser.

var ffmpeg = FFmpeg.createFFmpeg({
log: false,
corePath:
'https://cdn.jsdelivr.net/npm/@ffmpeg/core-wasm@0.7.1/ffmpeg-core.js',
})
ffmpeg.load()

Get error:
Uncaught TypeError [ERR_WORKER_PATH]: The worker script filename must be an absolute path or a relative path starting with './' or '../'. Received "blob:http://localhost:8080/75cc239b-a29d-445d-9aac-6bb8e3e76388"
at new Worker (internal/worker.js:79)
at Object.allocateUnusedWorker (ffmpeg-core.js:1)
at Object.initMainThreadBlock (ffmpeg-core.js:1)
at ffmpeg-core.js:1

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。