Fix api docs

This commit is contained in:
Jerome Wu
2023-07-26 22:24:38 +08:00
parent ef6c5d2156
commit 096f5b2358
6 changed files with 103 additions and 82 deletions

View File

@@ -109,9 +109,6 @@ export class FFmpeg {
* })
* ```
*
* @remarks
* log includes output to stdout and stderr.
*
* @example
* ```ts
* ffmpeg.on("progress", ({ progress, time }) => {
@@ -120,7 +117,8 @@ export class FFmpeg {
* ```
*
* @remarks
* The progress events are accurate only when the length of
* - log includes output to stdout and stderr.
* - The progress events are accurate only when the length of
* input and output video/audio file are the same.
*
* @category FFmpeg

View File

@@ -5,7 +5,7 @@ import {
import { HeaderContentLength } from "./const.js";
import { ProgressCallback } from "./types.js";
export const readFromBlobOrFile = (blob: Blob | File): Promise<Uint8Array> =>
const readFromBlobOrFile = (blob: Blob | File): Promise<Uint8Array> =>
new Promise((resolve, reject) => {
const fileReader = new FileReader();
fileReader.onload = () => {