Update README.md

This commit is contained in:
jeromewu 2020-03-24 03:36:50 +00:00
parent 05d7bb3bfb
commit e60713a98a

View File

@ -53,6 +53,7 @@ const worker = createWorker();
await worker.transcode('test.avi', 'test.mp4'); await worker.transcode('test.avi', 'test.mp4');
const { data } = await worker.read('test.mp4'); const { data } = await worker.read('test.mp4');
fs.writeFileSync('./test.mp4', data); fs.writeFileSync('./test.mp4', data);
await worker.terminate();
})(); })();
``` ```
@ -74,6 +75,10 @@ Or, using a script tag in the browser:
</script> </script>
``` ```
## Examples
- With React: https://github.com/ffmpegjs/react-app
## Documentation ## Documentation
- [API](https://github.com/ffmpegjs/ffmpeg.js/blob/master/docs/api.md) - [API](https://github.com/ffmpegjs/ffmpeg.js/blob/master/docs/api.md)