Peer to peer browser video calling platform with unmatched video quality and latency.
Go to file
2020-03-27 14:06:07 -04:00
public Neomorphic buttons 2020-03-27 14:06:07 -04:00
.env Hide logs + cleanup + add smart room hash 2020-03-22 10:02:40 -04:00
.gitignore Hide logs + cleanup + add smart room hash 2020-03-22 10:02:40 -04:00
package-lock.json heroku ssl attempt 2020-03-25 23:31:26 -04:00
package.json heroku ssl attempt 2020-03-25 23:31:26 -04:00
README.md Upload files 2020-03-21 17:23:46 -04:00
server.js Redirect safari and unsupported browsers 2020-03-27 12:32:22 -04:00

Video Chat

A simple video chat between two clients as an example of how to connect two browsers via WebRTC using Twilio STUN/TURN infrastructure.

Read the blog post to see how to build this: Getting Started with WebRTC using Node.js, Socket.io and Twilios NAT Traversal Service.

Quick start

  • Clone this repo
git clone https://github.com/philnash/video-chat.git
cd video-chat
  • Install dependencies
npm install
  • Create a .env file copying .env.template. Fill in your Account SID and Auth Token from your Twilio console
  • Start the server
npm start
  • Open two browsers on your laptop and point them localhost:3000. If you want to use a client on another computer/mobile, make sure you publish your server on an HTTPS connection (otherwise the camera may not work). You can use a service like ngrok for that.
  • Click on the "Get Video" button on both browsers
  • Click on button "Call" on one of the browser, to establish the video call