This commit is contained in:
an-lee
2024-03-01 15:44:40 +08:00
parent f52ecf7226
commit 824c25272a
5 changed files with 302 additions and 5 deletions

View File

@@ -79,8 +79,13 @@ export const AppSettingsProvider = ({
}, [user, apiUrl, language]);
const prepareFfmpeg = async () => {
const valid = await EnjoyApp.ffmpeg.check();
setFfmpegValid(valid);
try {
const valid = await EnjoyApp.ffmpeg.check();
setFfmpegValid(valid);
} catch (err) {
console.error(err);
toast.error(err.message);
}
loadFfmpegWASM();
};