Mais conteúdo relacionado Mais de Ericsson Labs (20) Web Real-Time Communication on Ericsson Labs2. Web Real-Time communication
› Get early access to experimental browser features for
real-time voice and video communication (Web-RTC)
› Early experimentation
– Download our browser
– Build your own “Web-RTC”-
enabled web app
– Provide API feedback
© Ericsson AB 2010 | Page 2
3. WHY Web-RTC?
› Write a web application with native HTML support for
conversational voice/video
– No plug-ins needed
› Prepare your existing web app for emerging standards
– Work ongoing in WhatWG, W3C, IETF and WebKit
© Ericsson AB 2010 | Page 3
4. Main Features
› Download our browser
– Early access to Web-RTC APIs
– Experimental WebKit (GTK+) implementation
› Point-to-point media over UDP
– No server relay, low latency
› Getting started
– Sample code to help you get started
– Demo application (https://webrtc.labs.ericsson.net/)
› NOTE! Only tested on Ubuntu 11.04
© Ericsson AB 2010 | Page 4
6. JavaScript API
› Snippets (incomplete)
function createPeerConnection() {
if (peerConn == null) {
peerConn = new PeerConnection("TURN 123.123.123.123:12345", cb);
peerConn.onOpen = indicateConnected();
peerConn.onAddStream = startShowingStream;
}
}
function callAudioVideo() {
webkit.GetUserMedia("audio, video", callWithStream);
}
function addStreamToCall(stream) {
peerConn.addStream(stream);
}
© Ericsson AB 2010 | Page 6