haydenbr / webrtc-video-chat

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WebRTC Video Chat

Very basic and somewhat buggy reference implementation of multi-user, WebRTC video chat in the browser. This was developed for a meetup. I don't find slides very helpful in general, but if you want them, they are here. The last page of the slides has some links to some helpful learning resources, so do check that out.

To start the signaling server and client server, run npm start. You can open the page at http://localhost:5500/.

For the turn-server,

cd ./turn-server
./build.sh
./build/turn-server --public-ip=<your_public_ip>

When running locally, you can test by opening the page in different browser tabs. You can also test connecting from different devices on the same local network if you're using https.

command args:

  • --ssl-cert-path path to ssl cert (not required when running locally)
  • --ssl-key-path path to ssl key (not required when running locally)
  • run node commands with --prod to use proper port numbers
  • run turn server with --public-ip <your_public_ip> (set to your local ip address when running locally)

Some ideas for enhancements if you want to tinker:

About

License:ISC License


Languages

Language:JavaScript 57.1%Language:Go 35.9%Language:HTML 5.5%Language:CSS 1.4%Language:Shell 0.2%