Top Banner
WHATRTC?
62

4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash

Jul 28, 2015

Download

Software

PROIDEA
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash

WHATRTC?

Page 2: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash

Phil Nash@philnash

http://philna.sh

[email protected]

Page 3: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash

CLOUDCOMMUNICATIONS

Page 4: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash

(+48) 73 248 31 45

Page 5: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash

TECH CHECK

Page 6: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash

Today

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

Page 7: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash

COMMUNICATION

Page 8: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash

CONTEXT

Page 9: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash
Page 10: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash
Page 11: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash

POWERED BYWEBRTC

Page 12: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash

WHAT ISWEBRTC?

Page 13: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash

WEB REAL TIMECOMMUNICATION

Page 14: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash

REALLY REALTIME

Page 15: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash

PEER TO PEER

Page 16: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash

SUPPORT

Page 17: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash
Page 18: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash
Page 19: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash

MOBILESUPPORT

Page 20: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash
Page 21: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash

APIs

•  getUserMedia•  RTCPeerConnection•  RTCDataChannel

Page 22: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash

WHAT DOESWEBRTC DO?

Page 23: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash

Get Video

Page 24: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash

AWESOMERIGHT?

Page 25: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash

HOW DOES ITWORK?

Page 26: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash

Meet Alice and Bob

Page 27: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash

PRESENCE

Page 28: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash

You need a server

Page 29: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash

Alice logs on

Page 30: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash

Bob logs on

Page 31: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash

Alice knows Bob is there

Page 32: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash

NAT TRAVERSAL

Page 33: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash
Page 34: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash

ICE ICE BABY

Page 35: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash

ICE ICE Baby

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

Page 36: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash

Hidden behind NAT

Page 37: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash
Page 38: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash

Alice gets ICE candidates

Page 39: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash

Bob gets ICE candidates

Page 40: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash

SIGNALLING

Page 41: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash

Alice sends candidates to Bob

Page 42: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash

Bob sends candidates to Alice

Page 43: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash

USER MEDIA

Page 44: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash

getUserMedia

Page 45: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash

Media offer/answer

Page 46: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash

Connection!

Page 47: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash

TURN Connection!

Page 48: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash

Summary

•  Presence•  NAT Traversal•  User Media•  Signalling

Page 49: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash

OTHER WEBRTCIDEAS

Page 50: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash

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

Page 51: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash

Webtorrent

Streaming torrent client for node and the browser

•  Code: http://webtorrent.io/•  npm:

https://www.npmjs.org/package/webtorrent

Page 52: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash

Gaming

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

Page 53: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash
Page 54: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash
Page 55: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash

Remember those texts?

Call

Page 56: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash

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

Page 57: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash

Resources

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

Page 58: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash
Page 59: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash

NASH20

Page 60: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash

Help me!

On a scale of 0 to 10, how likely is it that youwould recommend this talk to a friend orcolleague?

(+48) 73 248 31 45

Page 61: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash

ONWARD!

Page 62: 4Developers 2015:WhatRTC? Everything you need to know to connect browsers to the world - Phil Nash

Thanks!@philnash

http://philna.sh

[email protected]