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

Making video chat a feature

Making video chat a feature

WebRTC has been promising a glorious future of peer to peer communications since its initial release back in 2011. As always the reality is a bit more difficult than it sounded. We'll take a look at what WebRTC gives you as well as, importantly, what it leaves out. We'll take a look at the hurdles involved in implementing WebRTC. Finally we'll see how we can combine WebRTC services with Web Components to realise that glorious future with very little effort.

Phil Nash

April 14, 2016
Tweet

More Decks by Phil Nash

Other Decks in Programming

Transcript

  1. < t w i l i o - v i

    d e o > < / t w i l i o - v i d e o >
  2. < t w i l i o - v i

    d e o > < / t w i l i o - v i d e o >
  3. Templates < t e m p l a t e

    i d = " t w i l i o - v i d e o - t e m p l a t e " > . . . < / t e m p l a t e > 0 1 . 0 2 . 0 3 .
  4. HTML Imports < l i n k r e l

    = " i m p o r t " h r e f = " / v i d e o - c h a t . h t m l " >
  5. Custom Elements v a r T w i l i

    o V i d e o = d o c u m e n t . r e g i s t e r E l e m e n t ( " t w i l i o - v i d e o " , { p r o t o t y p e : O b j e c t . c r e a t e ( H T M L E l e m e n t . p r o t o t y p e ) } ) ; 0 1 . 0 2 . 0 3 .
  6. Shadow DOM v a r s h a d o

    w R o o t = t h i s . c r e a t e S h a d o w R o o t ( ) ; s h a d o w R o o t . a p p e n d C h i l d ( h t m l ) ; 0 1 . 0 2 .