I have a VPS and I want to use it as an intermediate server so that users can have access to the video stream of RPi Camera remotely. I searched many posts and most of them are about setting up a streaming server on RPi so that the stream can be accessed on LAN and using port forwarding to connect to the Pi directly. How can I use a server to do this?
Basically what I wanna achieve is:
User <---> VPS <---> RPi
RPi pushes the video stream to the VPS, and the VPS sends it to the user using the HTTP protocol (Maybe using the flask framework to implement this part is feasible?). I think it would work, but sadly I don't know the detail about how to implement this. Any suggestion or advice is welcome;-)
----------------------------------Update--------------------------------------
My VPS is a DigitalOcean droplet with 1G RAM.