![]() ![]() I have no clue how to send a response with the downloaded file so that the browser is not stuck on "loading", and I don't know either how to download the file using the browser as I did with the video (check the code to see my implementation on how to download video).īy the way, another user helped me implement the download video feature. Problem: the file is never downloaded using the browser. How it works: the user (my grandad) pastes the URL of the video into a form with two options (video or audio) and then the code above handles the rest. ![]() I have the following code ( which works locally on my computer, although it keeps the website loading (it doesn't resolve): const express = require('express') Ĭonst ffmpegStatic = require("ffmpeg-static") Ĭonst YoutubeMp3Downloader = require("youtube-mp3-downloader") To do this, I am using an npm package ( Youtube MP3 Downloader), MERN stack, and Heroku. I am making a simple website for my grandad so he can download videos from YouTube.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |