Release v0.10.0

This commit is contained in:
Jerome Wu
2021-05-17 17:03:07 +08:00
parent a4938281aa
commit 5cafc73545
5 changed files with 41 additions and 10 deletions

View File

@@ -4,6 +4,7 @@
- [ffmpeg.load()](#ffmpeg-load)
- [ffmpeg.run()](#ffmpeg-run)
- [ffmpeg.FS()](#ffmpeg-fs)
- [ffmpeg.exit()](#ffmpeg-exit)
- [ffmpeg.setLogging()](#ffmpeg-setlogging)
- [ffmpeg.setLogger()](#ffmpeg-setlogger)
- [ffmpeg.setProgress()](#ffmpeg-setProgress)
@@ -98,6 +99,23 @@ ffmpeg.FS('readFile', 'video.mp4');
ffmpeg.FS('unlink', 'video.mp4');
```
<a name="ffmpeg-exit"></a>
### ffmpeg.exit()
Kill the execution of the program, also remove MEMFS to free memory
**Examples:**
```javascript
const ffmpeg = createFFmpeg({ log: true });
await ffmpeg.load(...);
setTimeout(() => {
ffmpeg.exit(); // ffmpeg.exit() is callable only after load() stage.
}, 1000);
await ffmpeg.run(...);
```
<a name="ffmpeg-setlogging"></a>
### ffmpeg.setLogging(logging)