feat: add mobile Remotion video generator with image, text, audio, and Facebook publishing features.

This commit is contained in:
Michael committed 2026-03-25 16:16:30 +01:00
1 parent 3d51fdc90b
commit e1a6d1e06c
4 files changed
+19 -4

No files matched your search

@@ -131,6 +131,8 @@ export default function MobileRemotionVideoPage() {
if (!response.ok) { const e = await response.json().catch(() => ({})); throw new Error(e.error || "Erreur"); }
const data = await response.json();
setVideoUrl(data.url);
// Pre-fill description with overlay text so it appears in the Facebook post
if (overlayText && !publishDescription) setPublishDescription(overlayText);
toast({ title: "Vidéo générée !" });
} catch (err: any) {
toast({ title: "Erreur", description: err.message, variant: "destructive" });
+2
View File
@@ -115,6 +115,8 @@ export default function RemotionVideoPage() {
if (!response.ok) { const e = await response.json().catch(() => ({})); throw new Error(e.error || "Erreur"); }
const data = await response.json();
setVideoUrl(data.url);
// Pre-fill description with overlay text so it appears in the Facebook post
if (overlayText && !publishDescription) setPublishDescription(overlayText);
toast({ title: "Vidéo générée !", description: "Votre vidéo est prête à publier." });
} catch (err: any) {
toast({ title: "Erreur", description: err.message || "Impossible de créer la vidéo.", variant: "destructive" });