This commit is contained in:
Abhinav-grd 2021-08-26 15:28:10 +05:30
parent 9ee35f725e
commit c0e665cd1d

View file

@ -30,6 +30,7 @@ export async function generateThumbnail(
const thumb = await FFmpegService.generateThumbnail(file);
return { thumbnail: thumb, hasStaticThumbnail: false };
} catch (e) {
console.log(e);
canvas = await generateVideoThumbnail(file);
}
}
@ -39,6 +40,7 @@ export async function generateThumbnail(
throw Error('EMPTY THUMBNAIL');
}
} catch (e) {
console.log(e);
logError(e);
thumbnail = Uint8Array.from(atob(BLACK_THUMBNAIL_BASE64), (c) =>
c.charCodeAt(0)