how do you continue downloading the data stream when the user either refreshes or closes the browser tab?
I have an express Js backend with NextJS frontend.
where user can enter say youtube video URL, then expressJS downloads that videos and without saving it to filesystem it passes the stream to forntend.
Frontend then downloads the stream but the problem is when the user either refreshes or closes the browser tab, the download gets canceled.
what is the right way to continue the download even if the user closes the browser tab?
I have an express Js backend with NextJS frontend. where user can enter say youtube video URL, then expressJS downloads that videos and without saving it to filesystem it passes the stream to forntend. Frontend then downloads the stream but the problem is when the user either refreshes or closes the browser tab, the download gets canceled. what is the right way to continue the download even if the user closes the browser tab?
https://9apps.ooo/