Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Screen Sharing on your Local Server
Clone this wiki locally
This wiki explain:
How to implement client-side (local) screen-sharing without involving any 3rd-party service or extension or addon.
Chrome users: Make a ZIP of this:
Firefox users: Make XPI of this:
var arrayOfMyOwnDomains = ['yourdomain.com', 'www.yourdomain.com', 'localhost'];
Download RTCMultiConnection codes:
mkdir RTCMultiConnection-v3 cd RTCMultiConnection-v3 wget http://dl.webrtc-experiment.com/rtcmulticonnection-v3.tar.gz tar -zxvf rtcmulticonnection-v3.tar.gz ls -a
Please check other options (e.g. NPM/Git/bower/etc.) here:
server.js file and open
node server.js # if you installed via NPM cd node_moduels/rtcmulticonnection node server.js
Try this demo:
First user should open the room, and rest should join.
- RTCMultiConnection is running top over socket.io which means that everything is in your own hands
- RTCMultiConnection is using 2-3 STUN/TURN servers however you can always remove/skip 3rd party URLs
- Screen sharing requires HTTPs in Firefox; however Chrome requires HTTPs for everything.
- RTCMultiConnection, by default, tries to use fake-certificate however you can use valid certificates as well
- Firefox addon or chrome extension is required to enable screen for your domain or localhost
Addon or chrome-extension is required only for the person who shares his screen. Other users don't need to install anything.