From 3f5317ad188ea4056081c6ce482c65320008c729 Mon Sep 17 00:00:00 2001 From: Kerboul Date: Wed, 12 Feb 2025 11:40:42 +0100 Subject: [PATCH] =?UTF-8?q?Corriger=20la=20r=C3=A9cup=C3=A9ration=20du=20c?= =?UTF-8?q?hemin=20vid=C3=A9o=20en=20utilisant=20video=5Ffile=20au=20lieu?= =?UTF-8?q?=20de=20video=5Fpath?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routes/videoRoutes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/videoRoutes.js b/routes/videoRoutes.js index c785206..a0253a7 100644 --- a/routes/videoRoutes.js +++ b/routes/videoRoutes.js @@ -270,7 +270,7 @@ router.get('/videos/file/:video_id', (req, res) => { if (video.status === 0) { return res.status(400).json({ error: 'Video not yet produced' }); } - const videoPath = video.video_path; + const videoPath = video.video_file; console.log('Video path:', videoPath); fs.access(videoPath, fs.constants.F_OK, (err) => { if (err) {