Update website

This commit is contained in:
Jerome Wu
2023-07-24 23:57:29 +08:00
parent b277631f38
commit 8a9ffadf85
11 changed files with 88 additions and 17 deletions

View File

@@ -42,7 +42,7 @@
"url": "https://github.com/ffmpegwasm/ffmpeg.wasm/issues"
},
"engines": {
"node": ">=16.6.0"
"node": ">=18.17.0"
},
"homepage": "https://github.com/ffmpegwasm/ffmpeg.wasm#readme",
"publishConfig": {

View File

@@ -123,6 +123,7 @@ export class FFmpeg {
* The progress events are accurate only when the length of
* input and output video/audio file are the same.
*
* @category FFmpeg
*/
public on(
event: "log" | "progress",
@@ -135,6 +136,11 @@ export class FFmpeg {
}
}
/**
* Unlisten to log or prgress events from `ffmpeg.exec()`.
*
* @category FFmpeg
*/
public off(
event: "log" | "progress",
callback: LogEventCallback | ProgressEventCallback