WebRTC Demos

Control your desktop with a smartphone via WebRTC

Demo #1 🎱 Accelerometer Ball

Tilt your phone to roll a 3D ball around the screen using the accelerometer.

DeviceMotion → DataChannel → Three.js
Demo #2 🔴 Laser Pointer

Use your phone as a laser pointer — tilt to move a red dot across the screen.

DeviceOrientation → DataChannel
Demo #3 🖱️ Trackpad

Use your phone touchscreen as a wireless mouse for the desktop.

Touch → DataChannel
Demo #4 🎮 Gamepad

Turn your phone into a game controller with buttons and tilt input.

Touch + Motion → DataChannel