What is WebRTC?

08/03/2012

This is the first post I’ve written about WebRTC. Here’s a better overview of What is WebRTC.

For over a decade the VoIP market has been a relatively closed one, especially compared to what is happening with web based technologies. If you narrow it down to video conferencing, then almost every year I’d hear that this year – this one – is going to be the year video conferencing takes off – truly. And guess what? It never did happen. Now there’s a new game in VoIP town and it is called WebRTC.

WebRTC in a Sentence

WebRTC is a real time communication stack for the web. WebRTC is a media engine with JavaScript APIs. WebRTC brings VoIP to the browser natively. Maybe 3 sentences.

History

If you look at the browser, with a few exceptions it currently replaces all of the other platforms and environments for the applications we use. One such exception are applications that require bidirectional voice and video calling capabilities. While you can get these by way of a Flash plugin, this has its drawbacks.

In the beginning of 2010, Google finalized its acquisition of On2, a video codec company that has developed the VP series of codecs, with the latest one being VP8. On2 has always positioned its codecs as a patent free replacement to the H.26x series of codecs, which were standardized, patented and widely used. It then went about opening On2’s technologies to the world and open sources VP8 under the name of WebM. The idea was to replace H.264 for web videos and by that, reduce patent costs for everyone – especially Google itself.

Google went on and during 2010 acquired Global IP Solutions (GIPS), a company known for their media frameworks – a piece of technology that makes developing VoIP and video calling applications easier. At the time, GIPS had a large market share in VoIP, which caused most of the industry to scurry and search for alternative solutions. As with On2, Google took GIPS’ assets and open sourced them. This time, with an interesting twist: they threw out all voice and video codecs that had patent owners and added an additional layer – a JavaScript API as an integration layer to web browsers. The idea? Have bidirectional media processing and media coding technologies available in every browser. It then went on to push it as a standard at the IETF and W3C, where such standards live. It is now called WebRTC.

What’s Inside WebRTC?

From a codec perspective, WebRTC comes with the VP8 codec for video – instead of the more common H.264. On the voice front, it touts G.711, iSAC and iLBC. G.711 is the vinyl voice codec, while iSAC and iLBC are GIPS homebrewed codecs. WebRTC simplifies a lot of technologies for developers:

  • Transport layer, which is relatively simple, but hard to tweak for realtime communications
  • Codecs, something that is usually acquired from third parties
  • Media engine, something that is always looked at as art more than a straight forward implementation

And it then takes it to the masses of web developers – a group much larger than VoIP experts. Here’s the architectural diagram found on the WebRTC project page:

WebRTC is a work in progress. It isn’t integrated into most browsers yet. You can get a test bed for it on every Chrome browser today, but that’s about it. And it doesn’t have all of its features available. It does have a lot of disruption potential.

Classic VoIP or WebRTC?

WebRTC is a paradigm shift for video calling. It works differently and behaves differently.

Here’s a short comparison chart between WebRTC based video conferencing system and the classic one that can be found today.

Classic VoIP WebRTC
Signaling SIP or H.323 in most cases Undefined
Media transport RTP/RTCP RTP/RTCP
Security SRTP in SIP,H.235 in H.323 SRTP
NAT traversal STUN/TURN/ICE in SIP,H.450.x in H.323 STUN/TURN/ICE
Video codecs H.263, H.264 VP8
Voice codecs G.7xx series of codecs, and then some G.711, iLBC, iSAC

In future posts, I’ll try to go over some of the aspects of WebRTC, its advantages and challenges over existing solutions.

Responses

Suman says:
April 25, 2012

Hi ,

Thanks for the great insight in to WebRTC.

Do u think WebRTC affects the business model of services like Twilio , Tropo etc ?

Thanks
Suman

Reply
    Tsahi Levent-Levi says:
    April 25, 2012

    Suman,

    WebRTC is actually ideal for such businesses, as it allows them to provide their service on the web with no extra addons and it also allows them to provide video calling.

    Reply
      Suman says:
      April 25, 2012

      I think not . sorry to contradict you but thing is developers using Twilio so as not to learn or invest in a voip infrastructure and now with webrtc they dont have a reason to pay Twilio to receive calls on browsers .

      Reply
        Tsahi Levent-Levi says:
        April 27, 2012

        Suman,
        Developers still need to invest in the infrastructure. WebRTC still need NAT traversal. Twilio still offers connectivity to PSTN.

        There is now a lot more room for such companies now than ever before.

        Reply
Peter Thatcher says:
May 3, 2012

“Transport layer, which is relatively simple, but hard to tweak”

I think getting a p2p transport is a lot more complicated than that. Have you read the ICE standard or the libjingle code that implements it? It’s far from simple.

Reply
    Tsahi Levent-Levi says:
    May 4, 2012

    Peter,
    Being one of those who implemented transport layers and tweaked them and observed the effort required to deal with the media parts itself, I must say that media is harder to deal with when it comes to a mobile device.
    I might be biased because I did implement transport – never said I am perfect 🙂

    Reply
Jack Blaeser says:
May 14, 2012

WebRTC will transform and democratize video sooner than Skype and others expect. Already TenHands has announced (http://techcrunch.com/2012/05/11/video-collaboration-service-tenhands-launches-free-browser-based-webex-competitor/) it’s free HD desktop video based on the WebRTC platform. Users can experience its quality now (www.tenhands.net) and see it is better than Skype and even cheaper (free for multipoint).

Reply
Move Over Facebook VoIP, Here Comes Twelephone | Bilderbeek Consulting says:
June 4, 2013

[…] is Twelephone? Real time communications (think voice and video) enabled by your browser based on WebRTC. Twelephone supports Twitter sign in allowing users to use their twitter handle as their Twelephone […]

Reply
Temasys and WebRTC: An Interview With Bill lewis & Alex Gouaillard says:
July 26, 2013

[…] [If you are new around here, then you should know I've been writing about WebRTC lately. You can skim through the WebRTC post series or just read what WebRTC is all about.] […]

Reply
Temasys and WebRTC: An Interview With Bill lewis & Alex Gouaillard says:
November 14, 2013

[…] [If you are new around here, then you should know I've been writing about WebRTC lately. You can skim through the WebRTC post series or just read what WebRTC is all about.] […]

Reply
HTML5 Audio/Video Capture Status | Vane parole... says:
February 20, 2014

[…] is a technology born in 2011 thanks to Google, then the industry came with Mozilla among the others. Probably the best […]

Reply
Is the End of the Cloud PBX Near? - Fone.do says:
August 9, 2015

[…] WebRTC is a technology that brings Voice over IP to the browser natively. Tsahi has a very good post that explains this. The bottom line is that you can have all the functionality of a PBX in your […]

Reply

Comment