This commit is contained in:
2025-09-02 15:51:07 +02:00
parent 8223b572b9
commit 1c9974d362
5 changed files with 259 additions and 118 deletions
+4
View File
@@ -31,11 +31,14 @@ const DownloadSongs = ({ route }) => {
const handleDownloadUri = async () => {
if (action === "playback" && project?.id) {
// Publication du playback
console.log("project id : ", project.id);
try {
setIsLoading(true);
const { resultURI = null } = await uploadFileToFirebase({
uri: uri,
path: `musics/${project.id}/playback.mp4`,
shouldCompress: true,
fileType: "VIDEO",
});
if (!resultURI) throw new Error("Téléversement de l'image impossible");
@@ -59,6 +62,7 @@ const DownloadSongs = ({ route }) => {
});
}
} catch (error) {
console.log("error upload playback", error);
setTooltip({
type: "error",
text: "Erreur lors de la publication du playback",