Learning WebRTC
eBook - ePub

Learning WebRTC

Dan Ristic

Partager le livre
  1. 186 pages
  2. English
  3. ePUB (adapté aux mobiles)
  4. Disponible sur iOS et Android
eBook - ePub

Learning WebRTC

Dan Ristic

DĂ©tails du livre
Aperçu du livre
Table des matiĂšres
Citations

Foire aux questions

Comment puis-je résilier mon abonnement ?
Il vous suffit de vous rendre dans la section compte dans paramĂštres et de cliquer sur « RĂ©silier l’abonnement ». C’est aussi simple que cela ! Une fois que vous aurez rĂ©siliĂ© votre abonnement, il restera actif pour le reste de la pĂ©riode pour laquelle vous avez payĂ©. DĂ©couvrez-en plus ici.
Puis-je / comment puis-je télécharger des livres ?
Pour le moment, tous nos livres en format ePub adaptĂ©s aux mobiles peuvent ĂȘtre tĂ©lĂ©chargĂ©s via l’application. La plupart de nos PDF sont Ă©galement disponibles en tĂ©lĂ©chargement et les autres seront tĂ©lĂ©chargeables trĂšs prochainement. DĂ©couvrez-en plus ici.
Quelle est la différence entre les formules tarifaires ?
Les deux abonnements vous donnent un accĂšs complet Ă  la bibliothĂšque et Ă  toutes les fonctionnalitĂ©s de Perlego. Les seules diffĂ©rences sont les tarifs ainsi que la pĂ©riode d’abonnement : avec l’abonnement annuel, vous Ă©conomiserez environ 30 % par rapport Ă  12 mois d’abonnement mensuel.
Qu’est-ce que Perlego ?
Nous sommes un service d’abonnement Ă  des ouvrages universitaires en ligne, oĂč vous pouvez accĂ©der Ă  toute une bibliothĂšque pour un prix infĂ©rieur Ă  celui d’un seul livre par mois. Avec plus d’un million de livres sur plus de 1 000 sujets, nous avons ce qu’il vous faut ! DĂ©couvrez-en plus ici.
Prenez-vous en charge la synthÚse vocale ?
Recherchez le symbole Écouter sur votre prochain livre pour voir si vous pouvez l’écouter. L’outil Écouter lit le texte Ă  haute voix pour vous, en surlignant le passage qui est en cours de lecture. Vous pouvez le mettre sur pause, l’accĂ©lĂ©rer ou le ralentir. DĂ©couvrez-en plus ici.
Est-ce que Learning WebRTC est un PDF/ePUB en ligne ?
Oui, vous pouvez accĂ©der Ă  Learning WebRTC par Dan Ristic en format PDF et/ou ePUB ainsi qu’à d’autres livres populaires dans Computer Science et Web Development. Nous disposons de plus d’un million d’ouvrages Ă  dĂ©couvrir dans notre catalogue.

Informations

Année
2015
ISBN
9781783983667
Édition
1
Sous-sujet
Web Development

Learning WebRTC


Table of Contents

Learning WebRTC
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Getting Started with WebRTC
Audio and video communication today
Enabling audio and video on the Web
Camera and microphone capture
Encoding and decoding audio and video
Transportation layer
Session management
Creating web standards
Browser support
Compatibility with Chrome, Firefox, and Opera
Compatibility with Android OS
Compatibilty with Apple
Compatibility with Internet Explorer
Using WebRTC in your browser
Applications enabled by WebRTC
Self-test questions
Summary
2. Getting the User's Media
Getting access to media devices
Setting up a static server
Creating our first MediaStream page
Constraining the media stream
Constraining the video capture
Handling multiple devices
Creating a photo booth application
Modifying the media stream
Self-test questions
Summary
3. Creating a Basic WebRTC Application
Understanding UDP transport and real-time transfer
The WebRTC API
The RTCPeerConnection object
Signaling and negotiation
Session Description Protocol
Finding a clear route to another user
Session Traversal Utilities for NAT
Traversal Using Relays around NAT
Interactive Connectivity Establishment
Building a basic WebRTC application
Creating a RTCPeerConnection
Creating the SDP offer and response answer
Finding ICE candidates
Adding streams and polishing
Running your first WebRTC application
Self-test questions
Summary
4. Creating a Signaling Server
Building a signaling server
Setting up our environment
Getting a connection
Testing our server
Identifying users
Initiating a call
Answering a call
Handling ICE candidates
Hanging up a call
Complete signaling server
Signaling in the real world
The woes of WebSockets
Connecting with other services
XMPP
Session Initiation Protocol
Self-test questions
Summary
5. Connecting Clients Together
The client application
Setting up the page
Getting a connection
Logging in to the application
Starting a peer connection
Initiating a call
Inspecting the traffic
Hanging up a call
A complete WebRTC client
Improving the application
Self-test questions
Summary
6. Sending Data with WebRTC
Stream Control Transmission Protocol and data transportation
The RTCDataChannel object
Data channel options
Sending data
Encryption and security
Adding text-based chat
Use cases
Self-test questions
Summary
7. File Sharing
Getting a file with the File API
Setting up our page
Getting a reference to a file
Breaking down a file into chunks
Making chunks readable
Reading and sending the file
Putting it together on the other side
Showing progress to the user
Self-test questions
Summary
8. Advanced Security and Large-scale Optimization
Securing the signaling server
Using encryption
Using an OAuth provider
Supporting mobile devices
Introduction to mesh networking
Types of network meshes
Everyone to everyone
Star network
Partial mesh
Limits of mesh networking
Video conferencing with more users
The future of conference calls
Self-test questions
Summary
A. Answers to Self-test Questions
Chapter 1, Getting Started with WebRTC
Chapter 2, Getting the User's Media
Chapter 3, Creating a Basic WebRTC Application
Chapter 4, Creating a Signaling Server
Chapter 5, Connecting Clients Together
Chapter 6, Sending Data with WebRTC
Chapter 7, File Sharing
Chapter 8, Advanced Security and Large-scale Optimization
Index

Learning WebRTC

Copyright © 2015 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: June 2015
Production reference: 1250615
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78398-366-7
www.packtpub.com

Credits

Author
Dan Ristic
Reviewers
Roy Binux
Tsahi Levent-Levi
Andrii Sergiienko
Commissioning Editor
Andrew Duckworth
Acquisition Editor
Nikhil Karkal
Content Development Editor
Manasi Pandire
Technical Editor
Rahul C. Shah
Copy Editors
Sonia Michelle Cheema
Swati Priya
Neha Vyas
Project Coordinator
Bijal Patel
Proofreader
Safis Editing
Indexer
Monica Ajmera Mehta
Graphics
Disha Haria
Production Coordinator
Conidon Miranda
Cover Work
Conidon Miranda

About the Author

Dan Ristic is a frontend engineer and evangelist for Open Web. He strives to push the Web forward with new and creative ideas using the latest technologies. He attended the University of Advancing Technology, Arizona, where he furthered his engineering knowledge and fueled his passion for the Web. He has been writing applications on the Web ever since.
He currently lives and works in San Francisco as a senior software engineer at Sony Network Entertainment International. At Sony, he is responsible for managing the frontend application architecture and delivering the PlayStation Store to millions of users. In his free time, he can be found hiking, exploring, working on projects, and attending events.

About the Reviewers

Roy Binux is a software engineer and an open source developer. He focuses on information extraction and the Spider System at work and builds interesting things online for fun. He is open to new technologies and tries to make the process of getting knowledge from the Web easier and build something useful with the power of the Web. Most of his work is open source, and you can find him on GitHub at http://github.com/binux.
Tsahi Levent-Levi is an independent analyst and consultant for WebRTC.
He has 15 years of experience in telecommunications, VoIP, and the 3G industry as an engineer, manager, marketer, and CTO. He is an entrepreneur, independent analyst, and consultant and assists companies to form a bridge between technologies and business strategies in the domain of telecommunications.
He has an MSc degree in computer science and an MBA degree, with specialization in entrepreneurship and strategy. He has been granted three patents related to 3G-324M and VoIP. He was the chairman of various activity groups within IMTC, an organization focusing on the interoperability of multimedia communications.
He is also the author and editor of his blog https://bloggeek.me, which focuses on the ecosystem and business opportunities around WebRTC.
Andrii Sergiienko is an entrepreneur who is passionate about information technology and travelling. He has lived in different places, such as Ukraine, Russia, Belarus, Mongolia, Buryatia, and Siberia—and has spent many years in every place. He also likes to travel by auto.
From his early childhood, he was interested in computer programming and hardware. He took his first step in these fields more than 20 years ago. He has experience working with a wide set of languages and technologies, including C, C++, Java, Assembler, Erlang, JavaScript, PHP, Riak, shell scripting, computer networks, security, and so on.
During his career, he has worked for both small ...

Table des matiĂšres