0
Stream a video from another server to the client through my nodejs server
I 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?
2 Respostas
+ 1
You may use a proxy server ;)
0
Simon 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.