Feat: refactor ffmpeg config (#296)

* bundle ffmpeg wasm in package

* remove ffmpeg discover & add ffmpeg-static

* fix ffprobe-static version

* fix metadata generate

* fix auto transcribe if pending

* remove console.log
This commit is contained in:
an-lee
2024-02-11 17:21:39 +08:00
committed by GitHub
parent bc22a5e2b4
commit 57d6efa547
21 changed files with 131 additions and 703 deletions

View File

@@ -227,15 +227,7 @@ type EnjoyAppType = {
removeProgressListeners: () => Promise<void>;
};
ffmpeg: {
config: () => Promise<FfmpegConfigType>;
setConfig: (config: FfmpegConfigType) => Promise<FfmpegConfigType>;
download: () => Promise<FfmpegConfigType>;
check: () => Promise<boolean>;
discover: () => Promise<{
ffmpegPath: string;
ffprobePath: string;
scanDirs: string[];
}>;
};
download: {
onState: (callback: (event, state) => void) => void;