From d1be65cb3f808a55748210ed17ee8158196e64d2 Mon Sep 17 00:00:00 2001 From: leon-morival Date: Thu, 23 Oct 2025 14:34:37 +0200 Subject: [PATCH] playbacks ok web --- src/screens/Playback/RecordPlayback.web.js | 4 +- src/screens/Playback/RecordedPlayback.web.js | 54 ++++++++++++++------ src/screens/Production/DownloadSongs.js | 13 +++-- 3 files changed, 49 insertions(+), 22 deletions(-) diff --git a/src/screens/Playback/RecordPlayback.web.js b/src/screens/Playback/RecordPlayback.web.js index 2183ac0..8ef8d9d 100644 --- a/src/screens/Playback/RecordPlayback.web.js +++ b/src/screens/Playback/RecordPlayback.web.js @@ -26,6 +26,7 @@ import CreateLyricsHeader from "../Writing/components/CreateLyricsHeader"; const TIME_BEFORE_INCREMENT_MS = 20000; const LOG_PREFIX = "[RecordPlayback.web]"; +const WEB_PREVIEW_WIDTH = 360; const toSeconds = (v) => { const n = Number(v ?? 0); @@ -709,7 +710,8 @@ const RecordPlayback = ({ route }) => { { const total = Math.max(0, Math.floor(Number(s || 0))); @@ -24,6 +25,8 @@ const toSeconds = (value) => { return n > 10000 ? n / 1000 : n; // heuristique ms → s }; +const WEB_PREVIEW_WIDTH = 360; + const RecordedPlayback = ({ route }) => { const { videoUri, project } = route.params || {}; const songUrl = project?.songUrl || null; @@ -156,11 +159,14 @@ const RecordedPlayback = ({ route }) => { {videoUri ? ( { storagePath: `users/${currentUID}/projects/${project.id}/playback.mp4`, }; - console.log("[DownloadSongs] calling upload-mergeVideoAndAudio", payload); + console.log( + "[DownloadSongs] calling upload-mergeVideoAndAudio", + payload + ); const { data: result } = await callable(payload); @@ -186,7 +189,7 @@ const DownloadSongs = ({ route }) => { }} > { /> - Prêt à télécharger{" "} - {action === "playback" ? "ton Playback" : "ta chanson"} ? + Prêt à télécharger + {action === "playback" ? " ton Playback" : " ta chanson"} ?