Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Simplest WebRTC ever
JavaScript HTML Shell
Latest commit 7df87c4 @fippo fippo bump travis-multirunner

SimpleWebRTC - World's easiest WebRTC lib


Want to see it in action? Check out the demo:

It's so easy:

1. Some basic html

<!DOCTYPE html>
        <script src=""></script> 
            #remoteVideos video {
                height: 150px;
            #localVideo {
                height: 150px;
        <video id="localVideo"></video>
        <div id="remoteVideos"></div>

2. Create our WebRTC object

var webrtc = new SimpleWebRTC({
    // the id/element dom element that will hold "our" video
    localVideoEl: 'localVideo',
    // the id/element dom element that will hold remote videos
    remoteVideosEl: 'remoteVideos',
    // immediately ask for camera access
    autoRequestMedia: true

3. Tell it to join a room when ready

// we have to wait until it's ready
webrtc.on('readyToCall', function () {
    // you can name it anything
    webrtc.joinRoom('your awesome room name');

Available options

peerConnectionConfig - Set this to specify your own STUN and TURN servers. By default, SimpleWebRTC uses Google's public STUN server (, which is intended for public use according to:

Note that you will most likely also need to run your own TURN servers. See for a basic tutorial.


Sending files between individual participants is supported. See for a demo.

Note that this is not file sharing between a group which requires a completly different approach.

It's not always that simple...

Sometimes you need to do more advanced stuff. See for some examples.

Got questions?

Join the SimpleWebRTC discussion list:

or the Gitter channel:


Something went wrong with that request. Please try again.