Replies: 1 comment
-
Related to #568 I guess. import ffmpegWasm from '@ffmpeg/core-mt/wasm?url' // resolves to "/@fs/node_modules/@ffmpeg/core-mt/dist/esm/ffmpeg-core.wasm" in dev
import ffmpegCore from '@ffmpeg/core-mt?url' // resolves to "/@fs/node_modules/@ffmpeg/core-mt/dist/esm/ffmpeg-core.js" in dev
await this.ffmpeg.load({
coreURL: await toBlobURL(ffmpegCore, 'text/javascript'),
wasmURL: await toBlobURL(ffmpegWasm, 'application/wasm')
}) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm trying to make it work but
load
never resolves and reading the docs I'm not sure to understand how it's expected to load the worker and wasm file.Installation says:
Note
As @ffmpeg/ffmpeg spawns a web worker, you cannot import @ffmpeg/ffmpeg from CDN like unpkg. It is recommended to download it and host it on your server most of the time.
But the next section only shows how to load the worker and wasm file from unpkg, not how to bundle it
Thanks
Beta Was this translation helpful? Give feedback.
All reactions