Feat: more preferences (#106)

* add ffmpeg command check

* may switch language

* tweak
This commit is contained in:
an-lee
2024-01-14 16:54:15 +08:00
committed by GitHub
parent afb818f215
commit d2510d00cb
10 changed files with 212 additions and 14 deletions

View File

@@ -76,6 +76,8 @@ type EnjoyAppType = {
) => Promise<void>;
getFfmpegConfig: () => Promise<FfmpegConfigType>;
setFfmpegConfig: () => Promise<void>;
getLanguage: () => Promise<string>;
switchLanguage: (language: string) => Promise<void>;
};
fs: {
ensureDir: (path: string) => Promise<boolean>;
@@ -177,6 +179,7 @@ type EnjoyAppType = {
};
ffmpeg: {
download: () => Promise<FfmpegConfigType>;
check: () => Promise<boolean>;
};
download: {
onState: (callback: (event, state) => void) => void;