pc = new webkitRTCPeerConnection(servers);
pc.onaddstream = gotRemoteStream;
//...
function gotRemoteStream(e){
vid.src = URL.createObjectURL(e.stream);
}
Works cross-platform.
Save money on operations.
Without browser plugins!
Get access to (streaming) audio, video or other data.
Find out how people can connect to me on the Internet.
Find out about supported media formats and browser capabilities.
Exchange this information with peers.
Stream your audio, video and data.
Enjoy your session.
WebRTC is peer-to-peer multi-media communication for the browser.
Javascript APIs for control.
Protocols and infrastructure components for networking.
The major WebRTC APIs are:
DataChannel
The Opus Audio Codec.
PCMA/PCMU (scaling algorithms for audio sampling).
DTMF (“press 1 for sales” phone menus).
Arbritary data.
Video …
The video codec: VP8 and/or h264?
Use of SDP offer/answer or alternatives.
Browsers
Platforms
Market
Support in Firefox, Chrome and Opera.
No support yet in Internet Explorer and Safari.
Firefox & Chrome are sort of interoperable since May 2013.
Minor API differences between browsers.
There are differences in implementation progress.
See also iswebrtcreadyyet.com
Major PC platforms are supported (Windows, Mac OSX, Linux).
Mobile is fragmented:
Android has support by Chrome, Firefox and Opera.
iOS: only through native SDKs.
Windows Mobile: no support.
Firefox OS: no support yet.
Lot of innovation:
Communication services.
Content Delivery Networks.
Gaming.
Developer frameworks.
For stats and metrics checkout: webrtcstats.com
Next up…