The first part was a node.js sever application that will serve as a rendezvous point for setting up a simple WebRTC call. To build the server app we modified code we borrowed from an existing demo that Anant Narayanan put together called Gupshup. The code for the server project can be found and downloaded from github (carybran/webrtc-server · GitHub . The server code is relatively painless to use once you have node.js installed.
To run the server navigate to the webrtc-server project
- Run the node package manager in the directory as follows: "npm install app.js", this will download the dependent packages for the application
- Start node as follows: AUDIENCE="http://youripaddress:8000" node app.js
- The server is now ready to go.
The second part is using a nightly build of Mozilla Firefox. You should use the same version on each machine and I would recommend building your own copy of the nightly. To see what we used for the demo check out this file: webrtc-server/WebRTCExpo2012-demo-machine-config.txt at master · carybran/webrtc-server · GitHub Note: this demo was written for use with Mozilla but could easily be modified to work with Google Chrome.
The third part is the Plantronics client side code also on Github: carybran/PlantronicsWebRTC · GitHub. This code connects the Plantronics headset functionality to the web browser using websockets. For more information on how to build and use the code - check out the readme on Github
Once you have the server up and running and your Mozilla nightly configured to run WebRTC applications you should be able to connect to the node.js application and login with the username of your choice.
If you have questions or comments about getting the demo running please let me know.