WebRTC: Real Time Video/Audio For Your App ...

23
WebRTC: Real Time Video / Audio For Your App Riaz Virani

Transcript of WebRTC: Real Time Video/Audio For Your App ...

Page 1: WebRTC: Real Time Video/Audio For Your App ...

WebRTC: Real Time Video /Audio For Your App

Riaz Virani

Page 2: WebRTC: Real Time Video/Audio For Your App ...

Riaz Viranimonokaicode.co

pennyforyourcode.com

Page 3: WebRTC: Real Time Video/Audio For Your App ...

attend.zoho.com

Page 4: WebRTC: Real Time Video/Audio For Your App ...

How Did We Get Here?

Page 5: WebRTC: Real Time Video/Audio For Your App ...

HISTORY! - Part 1Once upon a time, we had slow internet limited to ISDN and dial up.

We used AOL Instant Messenger and RealPlayer.

Hell, Google was still a startup.

But then the gods gave us faster internet.

We started to video chat and watch endless videos of stupid house cats.

Yet the browser was still a fail.

Page 6: WebRTC: Real Time Video/Audio For Your App ...

HISTORY! - Part 2We needed Skype and Flash to talk to grandma.

Nope, there was no native HTML5 solution for our nanna.

So…

webRTC baby!

Page 7: WebRTC: Real Time Video/Audio For Your App ...

What is WebRTC?

Page 8: WebRTC: Real Time Video/Audio For Your App ...

Key Pieces

GetUserMedia (camera and microphone access)

PeerConnection (sending and receiving media)

DataChannel (sending and receiving everything else)

Page 9: WebRTC: Real Time Video/Audio For Your App ...

What It’s Not

WebRTC Peer-to-Peer Audio, Video, or Data

WebSockets Bi-Directional Pipe Between Client andServer

Page 10: WebRTC: Real Time Video/Audio For Your App ...

Server Side

Page 11: WebRTC: Real Time Video/Audio For Your App ...

Peer⇔ Peer =

Page 12: WebRTC: Real Time Video/Audio For Your App ...

! Peer⇔ Peer =

Required 20%of the time

Page 13: WebRTC: Real Time Video/Audio For Your App ...

This #$@&! can get complicated

Page 14: WebRTC: Real Time Video/Audio For Your App ...

Demo

https://www.monokaicode.co/webrtc_demo.html

Page 15: WebRTC: Real Time Video/Audio For Your App ...

Real Time Video Chat for Everybody!

Page 16: WebRTC: Real Time Video/Audio For Your App ...

Strengths = Weaknesses

Page 17: WebRTC: Real Time Video/Audio For Your App ...

Noooooooooooooooooo!

Page 18: WebRTC: Real Time Video/Audio For Your App ...

ORTC (Object RTC)

Originally designed by Robin Raymond of HookFlash in 2013

Removes WebRTC’s use of Session Description ProtocolSome think it’s too loose of an API

Google wants to merge both into

“WebRTC NV”

Microsoft is the only vendor who

supports ORTC

Page 19: WebRTC: Real Time Video/Audio For Your App ...

No Easy Solutions

Page 20: WebRTC: Real Time Video/Audio For Your App ...

Popular Providers

All-in-One Platforms

● OpenTok

● Twilio

Libraries

● PeerJS

● SimpleWebRTC

● Muaz Khan’s Libraries

● EasyRTC

Network Traversal

● Xirsys

● Twilio

● Bit6

Page 21: WebRTC: Real Time Video/Audio For Your App ...

Maybe this is the year...

Page 22: WebRTC: Real Time Video/Audio For Your App ...

But maybe not...“Just 4% of participants in the Nemertes' 2015-16 Enterprise Technology benchmark saidthey were using WebRTC today”

- NoJitter.com (2/3/16)

The Bottom Line

Page 23: WebRTC: Real Time Video/Audio For Your App ...

The End