Corriger la récupération du chemin vidéo en utilisant video_file au lieu de video_path
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user