Upgrade to Pro — share decks privately, control downloads, hide ads and more …

WhatRTC? Everything you need to know to connect browsers to the world.

Phil Nash
December 11, 2014

WhatRTC? Everything you need to know to connect browsers to the world.

Traditionally browsers talk to servers, but what if they could speak to each other? WebRTC is a small set of APIs that make peer to peer communication possible between browsers. Video, audio and data can flow from browser to browser opening up a new set of possibilities for the web.

We'll take a look at what WebRTC gives you and, importantly, what it leaves out. We'll take a look at implementing a simple chat application and speculate over more complicated use cases and examples.

--

Some links from the slides:

Blog post on getting started:
https://www.twilio.com/blog/2014/12/set-phasers-to-stunturn-getting-started-with-webrtc-using-node-js-socket-io-and-twilios-nat-traversal-service.html
https://github.com/philnash/video-chat

These slides on GitHub:
https://github.com/philnash/whatrtc

Waggledance:
http://waggle.monkeypatch.me/
https://github.com/tOkeshu/waggle.js
https://www.youtube.com/watch?v=pyIIkUV3moM

WebTorrent
http://webtorrent.io/

Phil Nash

December 11, 2014
Tweet

More Decks by Phil Nash

Other Decks in Programming

Transcript

  1. ICE ICE Baby All right stop, collaborate and listen Ice

    is back with my brand new invention Something grabs a hold of me tightly NAT Traversal goin on daily and nightly “
  2. NAT Traversal •  NAT — Network Address Translation •  ICE

    — Interactive Connectivity Establishment •  STUN — Session Traversal Utilities for NAT •  TURN — Traversal Using Relays around NAT
  3. Waggledance Distribute bandwidth amongst video viewers •  Example: http:/ /waggle.monkeypatch.me/

    •  Code: https:/ /github.com/tOkeshu/waggle.js •  Video: https:/ /www.youtube.com/watch? v=pyIIkUV3moM
  4. Webtorrent Streaming torrent client for node and the browser •

     Code: http:/ /webtorrent.io/ •  npm: https:/ /www.npmjs.org/package/webtorrent