2 Answers
New AnswerI have videos stored on a server (server1) that some clients have no access to, and I have another server (server2) that has access to server1 and the clients have access to. I want those clients to be able to watch those videos through server2 on their browsers. I can't just redirect them to server1 cuz they can't access it. I can't download and save the videos on server2 cuz I don't have that much of space on it. I know how to stream a local video to a client using chunks. I know how to download and save a video using http. Is there any way I can stream those videos from server1 to the clients using nodejs on server2?
6/9/2021 9:59:28 PM
Ali H. Al-Hilali2 Answers
New AnswerSimon Bolivar, I tried that before (using 'data' event from node http.get) the incoming 'data' were a stream, but not in a video format so I couldn't pipe them to the browser. I think they need to be encoded somehow to be playable as video chunks and that goes beyond my knowledge.
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message