add log for ffmpeg check
This commit is contained in:
@@ -11,6 +11,12 @@ export const FfmpegCheck = () => {
|
||||
const [downloading, setDownloading] = useState(false);
|
||||
const [progress, setProgress] = useState(0);
|
||||
|
||||
const refreshFfmpegConfig = async () => {
|
||||
EnjoyApp.settings.getFfmpegConfig().then((config) => {
|
||||
setFfmegConfig(config);
|
||||
});
|
||||
};
|
||||
|
||||
const downloadFfmpeg = () => {
|
||||
listenToDownloadState();
|
||||
setDownloading(true);
|
||||
@@ -37,6 +43,10 @@ export const FfmpegCheck = () => {
|
||||
return EnjoyApp.download.removeAllListeners();
|
||||
}, [ffmpegConfg?.ready]);
|
||||
|
||||
useEffect(() => {
|
||||
refreshFfmpegConfig();
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<div className="w-full max-w-sm px-6">
|
||||
{ffmpegConfg?.ready ? (
|
||||
|
||||
Reference in New Issue
Block a user