back to main page 3

WebRTC samples

This is a collection of small samples demonstrating various parts of the WebRTC APIs. The code for all samples are available in the GitHub repository.

Most of the samples use adapter.js, a shim to insulate apps from spec changes and prefix differences. lists command line flags useful for development and testing with Chrome.

Patches and issues welcome! See for instructions.

Warning: It is highly recommended to use headphones when testing these samples, as it will otherwise risk loud audio feedback on your system.


Access media devices


Query media devices

Stream capture:

Stream from canvas or video elements


Controlling peer connectivity


Send arbitrary data over peer connections

Video chat:

Full featured WebRTC application

Insertable Streams:

API for processing media