A Pusher, PeerJS, Google Cardboard experiment.
It's an experiment in control and out-of-body VR.
Two clients connect:
a. The Puppet
b. The Controller
- Captures video through their camera
- Sends their camera feed to The Controller
- Receives move instructions from The Controller
- Views the camera from The Puppet
- Captures movement instructions by moving their head left/right
- Sends the instructions to The Controller
The easy part of this was sending instructions from one client to the other, using Pusher and a simple Node server as a message relay. The hard part was hooking up WebRTC over PeerJS to send the video from client to client.
The server is a NodeJS server, using ExpressJS.
npm install express body-parser pusher
APP_ID='foo' APP_KEY='bar' APP_SECRET='baz' node server.js