Skip to content

Commit 6a95d03

Browse files
committed
Mention possible fix for local resource in README (#392)
1 parent 9c14cca commit 6a95d03

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)