Data and messaging

Peer-to-peer data channels, no media

Audio and video

Camera, canvas, and synthesized media over WebRTC

Advanced

Tracks, networking, and diagnostics

WHIP and WHEP

Standard WebRTC streaming to and from media services, separate from VDO.Ninja rooms

Node.js samples

Run from a checkout of the repository with node demos/<file>

Install dependencies with npm install @vdoninja/sdk @roamhq/wrtc (or node-datachannel for data-only peers), then run, for example, node demos/node-example.js. See the Node.js guide.
Two tabs
Use a demo's Open second tab link. The room is in the URL, so both tabs join the same one.
Other devices
Copy the share link to a phone or another computer. Peers connect directly, so no server setup is needed.
Camera and microphone
Browsers only allow capture on HTTPS or localhost.
Debugging
Open the browser console for detailed SDK connection logs.