Update usage

This commit is contained in:
Jerome Wu
2023-07-26 00:23:09 +08:00
parent 566593182b
commit 8370ef5937
8 changed files with 729 additions and 720 deletions

View File

@@ -22,23 +22,6 @@ export interface FFMessageLoadConfig {
* @defaultValue `https://unpkg.com/@ffmpeg/core-mt@${CORE_VERSION}/dist/umd/ffmpeg-core.worker.js`;
*/
workerURL?: string;
/**
* When `blob` is true, the content of `coreURL`, `wasmURL` and `workerURL`
* will be fetched and convert to blob URL. This avoids problems like CORS
* and provides download progress than can be listened like below:
*
* @example
* ```ts
* const ffmpeg = new FFmpeg();
* ffmpeg.on(FFmpeg.DOWNLOAD, (ev) => {
* console.log(ev);
* })
* await ffmpeg.load();
* ```
*
* @defaultValue `true`
*/
blob?: boolean;
/**
* When `thread` is true, ffmpeg imports `ffmpeg-core.worker.js` and thus
* makes multi-threaded core work.