lucaslouca / video-conference-webrtc

🐀Complete client/server application demonstrating how to setup a video conference with multiple peers using WebRTC.
MIT License
124 stars 78 forks source link

video-conference-webrtc

Complete client/server application demonstrating how to setup a video conference with multiple peers using WebRTC.

What the app does

This sample code demonstrates a client/server architecture running on Node.js, that enables users to setup up a video conference. The app makes use of Socket.IO and WebRTC.

When a peer visits http://127.0.0.1:1337/, a new room url is generated, which can then be used to invite others to the video conference.

Below is a screenshot of a sample room (http://127.0.0.1:1337/jk4qhh) with four users participating in a video conference:

A full working demo is available at FooBubble.com.

At the moment WebRTC is supported only by a limited number of browsers: Chrome, Firefox and Opera.

How to run the code

  1. Clone the repo: $ git clone https://github.com/lucaslouca/video-conference-webrtc.git
  2. $ cd video-conference-webrtc
  3. $ npm install (you may need root access)
  4. $ node server.js
  5. Access the app from a WebRTC capable webbrowser through http://127.0.0.1:1337/

Note: If you are sitting behind a corporate proxy make sure to use npm config set proxy http://"username:password"@proxy-server.com:8080 first.