Simple Video Chating with WebRTC


In the Accessing your Webcam in HTML tutorial, we learned about the getUserMedia API and how it allows you to access, among other things, our webcam and display a video stream to our screen. This is kinda cool, but there is a lot more we can do with this API. For example, we can use this API as part of a larger system that allows us to conduct a live video chat:

This is a companion discussion topic for the original entry at


Thanks for your post. All steps’ve been done including Scaledron ID and changing http to https. All is on a server.
But I see only myself in the left video container (see your html), my remote friend see only himself on the same place in the left container. What is wrong?


It seems that scaledrone or java script sees me as a remote user, I think that your example misses an essential part which is how to become a local user, there should be some simple register form, for instance, where I can input my secrete key or some access code. Right? I’m dumb at this, not a programmer at all.


I pinged the author to see if he can chime in on this, for RTC is not my area of familiarity :slight_smile:


Hey Pavel, could you link your site so I could check the JavaScript code. It’s hard to guess what could be wrong otherwise.


Hi sergee, JavaScript code is fine. It is the same as in the post, I’ve only changed Scaledrone channal ID (I registered to Scaledrone), so it works as the example one does only for remote users. You may check the example (see the post), it works the same as my page does. Now I understand that the code doesn’t provide some registration form to accept my ip address, or how it works I don’t know, to set me as a local user. Scaledrone provide a registration solution to a site, but it is all for programmers, my occupation is different, I can only use a ready solution.


You are correct. Scaledrone simply offers a way to connect two hosts and is targeted for developers. If you want an out of the box video solution I highly recommend looking into a ready solution.

Unfortunately I’m not exactly sure what is going wrong. If you still want to use Scaledrone then please upload and share the project with me, otherwise it’s impossible for me to debug it.