Skip to content

Commit e321c97

Browse files
authored
Add unpkg script tag installation example
Helpful for newbies like me who don't use browserify, and didn't realise it was as easy as including a script tag (until I saw the codepen examples).
1 parent 2f04484 commit e321c97

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,16 @@ $ npm install @ffmpeg/ffmpeg
6363

6464
> As we use `worker_threads` which was introduced in Node.js v10.5.0, please remember to add `--experimental-worker` if you are using Node.js v10, and you don't have to add anything if you are using Node.js v12
6565
66+
Or, using a script tag in the browser:
67+
68+
```
69+
<script src="https://unpkg.com/@ffmpeg/[email protected]/dist/ffmpeg.min.js"></script>
70+
<script>
71+
const { createWorker } = FFmpeg;
72+
...
73+
</script>
74+
```
75+
6676
## Documentation
6777

6878
- [API](https://github.com/ffmpegjs/ffmpeg.js/blob/master/docs/api.md)

0 commit comments

Comments
 (0)