WebRTC-Multi-Peer-Video-Audio
WebRTC-Multi-Peer-Video-Audio copied to clipboard
WebRTC Multi-Peer Video & Audio
This library creates a traditional multi-peer communication using a single signaling server. Videos are added to the screen as users join and accept use of their cameras and microphones. As users disconnect, their videos are removed from all sessions.
1. Setup The Signaling Server
The signaling server can be created and run with nodejs. Realtime communication is achieved using socket.io
- Copy the server folder onto your server
- Setup approproate vhosts -- By default, the server will run on port
3000
-
cd server
-
npm install
-
node app.js
2. Setup the Client
Client code can be run locally, or from a webserver.
- Add a
config.js
file into the root of the client folder - Add your server URL to the
config.js
file
var config = {
host: 'https://mywebsite.com:443'
}
- Load the index.html page in the browser
Browser Support
This codebase has been tested in the following browsers:
- Chrome
- Safari 11 - Mobile
Known Issues/Notes
- Safari 10 mobile does not support WEBrtc
- Safari 10 desktop has an issue displaying video - In progress
- Firefox has an issue displaying remote video - In progress