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?
Asked
Active
Viewed 1,703 times
4
-
Did you achieved this functionality, please post if yes! – Shubham Jun 07 '20 at 07:16
-
Slightly off-top question here, but do you have an example for getting a kinesis video stream webRTC to start/work from the MASTER role? – Dru Serkes Jan 17 '22 at 18:15
2 Answers
0
I think you can do the following:
- Get the video stream from WebRTC
- Use KVS Producer's PutMedia, https://docs.aws.amazon.com/kinesisvideostreams/latest/dg/API_dataplane_PutMedia.html.
- 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
-
2Is 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