Slide 1

Slide 1 text

WHATRTC?

Slide 2

Slide 2 text

Phil Nash @philnash http:/ /philna.sh philnash@twilio.com

Slide 3

Slide 3 text

CLOUD COMMUNICATIONS

Slide 4

Slide 4 text

(+48) 73 248 31 45

Slide 5

Slide 5 text

TECH CHECK

Slide 6

Slide 6 text

Today •  Communication •  Introduction to WebRTC •  Implementing WebRTC •  Applications of WebRTC

Slide 7

Slide 7 text

COMMUNICATION

Slide 8

Slide 8 text

CONTEXT

Slide 9

Slide 9 text

No content

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

POWERED BY WEBRTC

Slide 12

Slide 12 text

WHAT IS WEBRTC?

Slide 13

Slide 13 text

WEB REAL TIME COMMUNICATION

Slide 14

Slide 14 text

REALLY REAL TIME

Slide 15

Slide 15 text

PEER TO PEER

Slide 16

Slide 16 text

SUPPORT

Slide 17

Slide 17 text

No content

Slide 18

Slide 18 text

No content

Slide 19

Slide 19 text

MOBILE SUPPORT

Slide 20

Slide 20 text

No content

Slide 21

Slide 21 text

APIs •  getUserMedia •  RTCPeerConnection •  RTCDataChannel

Slide 22

Slide 22 text

WHAT DOES WEBRTC DO?

Slide 23

Slide 23 text

Get Video

Slide 24

Slide 24 text

AWESOME RIGHT?

Slide 25

Slide 25 text

HOW DOES IT WORK?

Slide 26

Slide 26 text

Meet Alice and Bob

Slide 27

Slide 27 text

PRESENCE

Slide 28

Slide 28 text

You need a server

Slide 29

Slide 29 text

Alice logs on

Slide 30

Slide 30 text

Bob logs on

Slide 31

Slide 31 text

Alice knows Bob is there

Slide 32

Slide 32 text

NAT TRAVERSAL

Slide 33

Slide 33 text

No content

Slide 34

Slide 34 text

ICE ICE BABY

Slide 35

Slide 35 text

ICE ICE Baby •  ICE — Interactive Connectivity Establishment •  NAT — Network Address Translation •  STUN — Session Traversal Utilities for NAT •  TURN — Traversal Using Relays around NAT

Slide 36

Slide 36 text

Hidden behind NAT

Slide 37

Slide 37 text

No content

Slide 38

Slide 38 text

Alice gets ICE candidates

Slide 39

Slide 39 text

Bob gets ICE candidates

Slide 40

Slide 40 text

SIGNALLING

Slide 41

Slide 41 text

Alice sends candidates to Bob

Slide 42

Slide 42 text

Bob sends candidates to Alice

Slide 43

Slide 43 text

USER MEDIA

Slide 44

Slide 44 text

getUserMedia

Slide 45

Slide 45 text

Media offer/answer

Slide 46

Slide 46 text

Connection!

Slide 47

Slide 47 text

TURN Connection!

Slide 48

Slide 48 text

Summary •  Presence •  NAT Traversal •  User Media •  Signalling

Slide 49

Slide 49 text

OTHER WEBRTC IDEAS

Slide 50

Slide 50 text

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

Slide 51

Slide 51 text

Webtorrent Streaming torrent client for node and the browser •  Code: http:/ /webtorrent.io/ •  npm: https:/ /www.npmjs.org/package/webtorrent

Slide 52

Slide 52 text

Gaming •  sLive gaming against friends •  CubeSlam: https:/ /www.cubeslam.com/

Slide 53

Slide 53 text

No content

Slide 54

Slide 54 text

No content

Slide 55

Slide 55 text

Remember those texts? Call

Slide 56

Slide 56 text

MayDay results Launched September 2013, by April 2014 •  44 advisors sang happy birthday •  648 advisors had been serenaded •  35 advisors had received marriage proposals •  3 customers asked for a bedtime story •  1 customer asked for help with a particularly difficult level of Angry Birds

Slide 57

Slide 57 text

Resources •  http:/ /bit.ly/stunturn •  https:/ /github.com/philnash/video-chat •  https:/ /github.com/philnash/whatrtc

Slide 58

Slide 58 text

No content

Slide 59

Slide 59 text

NASH20

Slide 60

Slide 60 text

Help me! On a scale of 0 to 10, how likely is it that you would recommend this talk to a friend or colleague? (+48) 73 248 31 45

Slide 61

Slide 61 text

ONWARD!

Slide 62

Slide 62 text

Thanks! @philnash http:/ /philna.sh philnash@twilio.com