playbacks ok web

This commit is contained in:
2025-10-23 14:34:37 +02:00
parent efa6c07cef
commit d1be65cb3f
3 changed files with 49 additions and 22 deletions
+8 -5
View File
@@ -10,7 +10,7 @@ import {
} from "react-native";
import useMinuit from "react-native-minuit/src/hooks/useMinuit.js";
import { responsiveHeight } from "react-native-responsive-dimensions";
import { background, img } from "../../assets";
import { background } from "../../assets";
import MusicLandHeader from "../../components/MusicLandHeader";
import firebase, { projectsRef, serverTimestamp } from "../../config/firebase";
import { uploadFileToFirebase } from "../../helpers/uploadToFirebase";
@@ -106,7 +106,10 @@ const DownloadSongs = ({ route }) => {
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 }) => {
}}
>
<Image
source={img.placeholder2}
source={{ uri: project?.coverUrl }}
style={{
...size({ size: 158 }),
borderRadius: 13,
@@ -195,8 +198,8 @@ const DownloadSongs = ({ route }) => {
/>
<View style={{ gap: 12, paddingVertical: 12 }}>
<Text style={styles.title}>
Prêt à télécharger{" "}
{action === "playback" ? "ton Playback" : "ta chanson"} ?
Prêt à télécharger
{action === "playback" ? " ton Playback" : " ta chanson"} ?
</Text>
<View style={{ gap: 10 }}>
<Pressable