Looking for a WebRTC sample? There’s a GitHub repo for that
WebRTC samples has a new home: Github.
[Sam Dutton is THE developer advocate at Google for WebRTC (and a few other browser technologies). Sam shares what to expect from the new github repository of WebRTC samples.]
[Sam Dutton is THE developer advocate at Google for WebRTC (and a few other browser technologies). Sam shares what to expect from the new github repository of WebRTC samples.]
To better serve our audience, we're now sharing WebRTC samples and reference applications on GitHub.
When we set out to release WebRTC publicly we wanted as many developers as possible to experience the technology and use it in their apps and sites. This desire hasn’t changed over the years, and that's why the samples and tests now live at GitHub – because it's a major part of today’s sharing economy for developers. Code samples, demos and tests for the WebRTC project are now available from github.com/webrtc. (Thanks to the folks at webrtc.io for letting us use this.) WebRTC's new home has four repos:- apprtc: the reference video chat client
- testrtc: tests and tools
- samples: demos and sample code
- adapter: a shim to insulate apps from spec changes and prefix differences
The samples
All the samples – more than 20 so far – can be viewed live at webrtc.github.io/samples. These aim to provide simplest-possible examples of the different features of WebRTC. All the live demos are designed to work on different viewport sizes. There's some obvious stuff here, including canonical demos of getUserMedia, peer connection and data channels. My favourites are those that show off some of the less well known capabilities of WebRTC such as DTMF – the ability to send dial tones:





