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

WebRTC introduction

Martin
August 19, 2014

WebRTC introduction

Something about WebRTC: what is WebRTC for, three main categories of APIs provided by it, and simple screenshots show how to setup a P2P connection of WebRTC and lastly, its compatibility.

Martin

August 19, 2014
Tweet

More Decks by Martin

Other Decks in Programming

Transcript

  1. Who am I? Company:
 Beansmile Main Skills:
 Ruby on Rails,

    Javascript Github:
 https://github.com/Martin91 Blog:
 http://martin91.github.io/

  2. Characters of WebRTC 1. Plugin Free
 Many web services already

    use RTC, but need downloads, native apps or plugins.
 Skype, Facebook, Google Hangouts 2. Fast 3. Convenient
 No download, no install, no update. 4. Easy Maintaining
 No need to deploy, debug, test and maintain plugins
  3. Main 3 categories of APIs provided by WebRTC MediaStream (aka

    getUserMedia)
 get access to data streams, such as from the user's camera and microphone. RTCPeerConnection
 audio or video calling, with facilities for encryption and bandwidth management. RTCDataChannel
 peer-to-peer communication of generic data.
  4. RTCPeerConnection 1. creates an RTCPeerConnection object with an onicecandidate handler

    2. sends serialized candidate data through signalling channel 3. exchange session description(SDP, JSEP)
  5. RTCDataChannel General Data Communication Act like WebSocket Use Cases Gaming

    Remote desktop applications Real-time text chat File transfer
  6. Compatibility Currently supported by Chrome, Firefox and Opera Browser supports

    WebRTC only means that it at least implements MediaStream Apple Will Soon Support WebRTC 
 The team is merging WebRTC related code from Blink to WebKit Microsoft Internet Explorer is a tough nut to crack
  7. Cases Tokbox (aka OpenTok, https://tokbox.com/)
 Real-Time video communication service provider

    InstaEDU (https://instaedu.com/)
 Based on OpenTok, provided online classrooms with video chat capacity Ericsson Researches (http://www.ericsson.com/research- blog/) Experimental WebRTC mobile browser Field Service Support with Google Glass and WebRTC Limitless Imaginations