Real-Time Communication with WebRTC: Peer-to-Peer in the Browser

Deliver rich audio and video teleconferencing and peer-to-peer data exchange right in the browser. With this hands-on book, you’ll learn how to use the emerging Web Real Time Communication (WebRTC) technology to build a browser-to-browser application piece by piece.

WebRTC components allow web browsers to securely access webcams and microphones and to capture media, set up audio/video calls, and share data via peer-to-peer—all without the use of plugins. The technology defines channels connecting applications running on any device.

This book’s learn-by-example approach is ideal not only for web programmers familiar with JavaScript, but also for real-time application architects who understand the inner workings of Internet protocols and communication paradigms. You’ll learn WebRTC theory and work with exercises that you can apply to your own projects.

1118905403
Real-Time Communication with WebRTC: Peer-to-Peer in the Browser

Deliver rich audio and video teleconferencing and peer-to-peer data exchange right in the browser. With this hands-on book, you’ll learn how to use the emerging Web Real Time Communication (WebRTC) technology to build a browser-to-browser application piece by piece.

WebRTC components allow web browsers to securely access webcams and microphones and to capture media, set up audio/video calls, and share data via peer-to-peer—all without the use of plugins. The technology defines channels connecting applications running on any device.

This book’s learn-by-example approach is ideal not only for web programmers familiar with JavaScript, but also for real-time application architects who understand the inner workings of Internet protocols and communication paradigms. You’ll learn WebRTC theory and work with exercises that you can apply to your own projects.

24.99 In Stock
Real-Time Communication with WebRTC: Peer-to-Peer in the Browser

Real-Time Communication with WebRTC: Peer-to-Peer in the Browser

Real-Time Communication with WebRTC: Peer-to-Peer in the Browser

Real-Time Communication with WebRTC: Peer-to-Peer in the Browser

Paperback

$24.99 
  • SHIP THIS ITEM
    Qualifies for Free Shipping
  • PICK UP IN STORE
    Check Availability at Nearby Stores

Related collections and offers


Overview

Deliver rich audio and video teleconferencing and peer-to-peer data exchange right in the browser. With this hands-on book, you’ll learn how to use the emerging Web Real Time Communication (WebRTC) technology to build a browser-to-browser application piece by piece.

WebRTC components allow web browsers to securely access webcams and microphones and to capture media, set up audio/video calls, and share data via peer-to-peer—all without the use of plugins. The technology defines channels connecting applications running on any device.

This book’s learn-by-example approach is ideal not only for web programmers familiar with JavaScript, but also for real-time application architects who understand the inner workings of Internet protocols and communication paradigms. You’ll learn WebRTC theory and work with exercises that you can apply to your own projects.


Product Details

ISBN-13: 9781449371876
Publisher: O'Reilly Media, Incorporated
Publication date: 05/12/2014
Pages: 161
Product dimensions: 7.00(w) x 9.00(h) x 0.40(d)

About the Author

Salvatore Loreto works as a senior scientist at NomadicLab's MultiMedia Technology branch, which is part of Ericsson Research in Finland. He works on standardization, research projects and strategy related to the Internet in general and in particular VoIP, Media & Web Communication and Internet of Things (IoT).

Simon Pietro Romano is Assistant Professor at the DIS (Information & System Department) of the University of Napoli Federico II.

Table of Contents

Preface vii

1 Introduction 1

Web Architecture 1

WebRTC Architecture 2

WebRTC in the Browser 3

Signaling 5

WebRTC API 5

MediaStream 6

PeerConnection 7

DataChannel 8

A Simple Example 9

2 Handling Media in the Browser 11

WebRTC in 10 Steps 11

Media Capture and Streams 12

MediaStream API 12

Obtaining Local Multimedia Content 13

URL 13

Playing with the getUserMedia() API 13

The Media Model 19

Media Constraints 19

Using Constraints 19

3 Building the Browser RTC Trapezoid: A Local Perspective 25

Using PeerConnection Objects Locally: An Example 27

Starting the Application 32

Placing a Call 36

Hanging Up 44

Adding a DataChannel to a Local PeerConnection 46

Starting Up the Application 51

Streaming Text Across the Data Channel 57

Closing the Application 60

4 The Need for a Signaling Channel 63

Building Up a Simple Call Flow 63

Creating the Signaling Channel 72

Joining the Signaling Channel 76

Starting a Server-Mediated Conversation 79

Continuing to Chat Across the Channel 82

Closing the Signaling Channel 85

5 Putting It All Together: Your First WebRTC System from Scratch 91

A Complete WebRTC Call Flow 91

Initiator Joining the Channel 104

Joiner Joining the Channel 110

Initiator Starting Negotiation 112

Joiner Managing Initiator's Offer 115

ICE Candidate Exchanging 117

Joiner's Answer 121

Going Peer-to-Peer! 123

Using the Data Channel 125

A Quick Look at the Chrome WebRTC Internals Tool 129

6 An Introduction to WebRTC API's Advanced Features 133

Conferencing 133

Identity and Authentication 134

Peer-to-Peer DTMF 135

Statistics Model 136

A. WebRTC 1.0 APIs 139

Index 145

From the B&N Reads Blog

Customer Reviews