mirror of
https://github.com/R0m1k3/Socialflow.git
synced 2026-10-18 04:36:32 +02:00
feat: add mobile Remotion video generator with image, text, audio, and Facebook publishing features.
This commit is contained in:
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" });
|
||||
|
||||
@@ -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" });
|
||||
|
||||
Reference in new issue
Block a user