This is a simple example of rendering a local and remote video stream in a three dimensional environment using WebRTC, Node.js, Socket.io and Three.js. This example is put together using Hiren Kavad's PeerChat and Lee Stemkoski's Three.js Webcam-Texture example. PeerChat has been modified to also work with Mozilla Firefox
- Clone to your machine
- run npm install from your CLI
- Add Turn Server API Key to script tag of index.html
- If you don't have API Key you can get it for free on TurnServers.com
- run node server.js command
- Open localhost:3000 in two tabs/windows
- And You Go....
- Fix cross-browser bugs between Firefox and Chrome
- Put username/room inputs back (currently hardcoded for debugging purposes)
-
Zachary Stenger
-
Hiren Kavad
This bundle is dual-licensed under MIT and GPL licenses.
Use it, change it, fork it, sell it. Do whatever you want, but please leave the author attribution.