Skip to content

Commit 2a181ee

Browse files
authored
Merge pull request #394 from Willy-JL/fix-local
Fix local resource error on browser (#392)
2 parents f07b1e9 + b21123b commit 2a181ee

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,14 @@ const ffmpeg = createFFmpeg({
105105
});
106106
```
107107

108+
Keep in mind that for compatibility with webworkers and nodejs this will default to a local path, so it will attempt to look for `'static/js/ffmpeg.core.js'` locally, often resulting in a local resource error. If you wish to use a core version hosted on your own domain, you might reference it relatively like this:
109+
110+
```javascript
111+
const ffmpeg = createFFmpeg({
112+
corePath: new URL('static/js/ffmpeg-core.js', document.location).href,
113+
});
114+
```
115+
108116
For the list available versions and their changelog, please check: https://github.com/ffmpegwasm/ffmpeg.wasm-core/releases
109117

110118
### Use single thread version

0 commit comments

Comments
 (0)