Release v0.10.0
This commit is contained in:
18
docs/api.md
18
docs/api.md
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user