The signaling server identifies and facilitates negotiations between transceivers before they drop into a peer-to-peer connection. It must be run on a machine that is accessible by both transceivers.
npm install
node ./server.js
on a machine accessible by both planned transceivers.index.html
call to new Socket(ipaddr, port)
. These should point to your signaling server.npm install
npm start
.Connect
button.Serve the required files over file://
or HTTP to use them in the browser. This has been confirmed to work (some receiver only) in Chrome, FireFox, and Chrome Android.
Make sure to npm install
or some of the dependencies won't exist.
file://
protocol.index.html
in a browser by double-clicking it or dragging it into an open window.python -m SimpleHTTPServer
lib.js
. Flip showVideo
to true
.lib.js
if you want to transmit video from them.
Left as is, they will still function as receivers.Local
audio element can be used to verify that the stream is actually capturing.
You should hear an echoey/phasey effect.