WebRTC Javascript adjustments

Job ID: 31639822

Budget: €30 – €250 EUR

Hi,
I would like to have some adjustments made to the example code of AWS’ WebRTC sample code. There are currently three buttons to connect to a video call. I want this to be one button and make some kind of connect to a random stranger feature. If clicked on one “Connect” button the following should happen:

1. A userid should be generated and should be send out via wss and saved as a cookie.
2. The webhook should be read and one random user should be selected to be connected to (either as viewer or master – see code /example folder. The user should not see this but the code should connect automatically as viewer or master and the code should handle all this on its own.
3. If a user is connected already he should be considered as unavailable and not connected to. This should also be handled via webhook.
4. When the button is clicked again the users shall disconnect and be again considered open for any other users and connected accordingly.

Please find the link to the AWS sample here: https://github.com/awslabs/amazon-kinesis-video-streams-webrtc-sdk-js

If something is not clear, feel free to reach out for clarifications and your rates. Since the app is already coded this shouldn’t involve to much recoding.
Related categories: JavaScript jQuery / Prototype Node.js