Search code examples
node.jsgostreamrecording

How to do screen recording and save in some cloud storage like s3 in real time


I am trying to solve a problem where you need to record screens in real time and keep on sending the data to the backend which will store the video as an s3 object(any cloud store).

I did research it, but everywhere I see people are recording the video and send it as a single file after recording is completed, the problem here is the file may be very big to send it as a single file, hence I want it to get saved in real-time in s3.

I have also seen Webrtc which helps in peer to peer communication.

any suggestions around this to implement in GO or Nodejs will be helpful.

Thanks


Solution

  • What you can do is using an SFU. Which will be used to send screen data to using webrtc and save it to a file server-side.

    You can use mediasoup for this.

    Here is a working example: https://github.com/ethand91/mediasoup3-record-demo