Skip to content

Commit

Permalink
Merge pull request ffmpegwasm#394 from Willy-JL/fix-local
Browse files Browse the repository at this point in the history
Fix local resource error on browser (ffmpegwasm#392)
  • Loading branch information
jeromewu committed Aug 25, 2022
2 parents f07b1e9 + b21123b commit 2a181ee
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,14 @@ const ffmpeg = createFFmpeg({
});
```

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:

```javascript
const ffmpeg = createFFmpeg({
corePath: new URL('static/js/ffmpeg-core.js', document.location).href,
});
```

For the list available versions and their changelog, please check: https://github.com/ffmpegwasm/ffmpeg.wasm-core/releases

### Use single thread version
Expand Down

0 comments on commit 2a181ee

Please sign in to comment.