4

Im using aws kinesis video stream webRTC for making a video chat in reactjs .Everything is working fine.But i want to store the video in s3 bucket.How should i implement this video storage?

Vikasini N
  • 41
  • 2

2 Answers2

0

I think you can do the following:

  1. Get the video stream from WebRTC
  2. Use KVS Producer's PutMedia, https://docs.aws.amazon.com/kinesisvideostreams/latest/dg/API_dataplane_PutMedia.html.
  3. Retrieve them the frames with GetMedia, https://docs.aws.amazon.com/kinesisvideostreams/latest/dg/API_dataplane_GetMedia.html.

Note: under the hood, KVS Producer uses S3

Lukas Herman
  • 170
  • 2
  • 9
  • 2
    Is there any chances to save the video while using kinesis signaling channel. – Vikasini N Jun 02 '20 at 04:09
  • AWSlabs KVS npm package(https://www.npmjs.com/package/amazon-kinesis-video-streams-webrtc) doesn't allow any functionality to create a video stream. It only provides Signaling Channel class. – nishit chittora Dec 20 '21 at 06:21
0

Since the connection can be peer to peer, you have to store the video yourself to S3. You can try to use the KVS producer sdk for that purpose: https://github.com/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp

chehefen
  • 36
  • 1