售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
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
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜