Replies: 2 comments 2 replies
|
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')
}) |
0 replies
|
joy of code has a tutorial on ffmpeg wasm in sveltekit pwa, i'm guessing it should be possible |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I'm trying to make it work but
loadnever 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
All reactions