Book Image

WebRTC Blueprints

By : Andrii Sergiienko
Book Image

WebRTC Blueprints

By: Andrii Sergiienko

Overview of this book

Table of Contents (13 chapters)
WebRTC Blueprints
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 4. Security and Authentication

In the previous chapter, we learned how to deal with the HTML5 File API to read files from a JavaScript application. We obtained knowledge on how to work with the media streaming the WebRTC API.

We also developed an application based on our newly acquired knowledge, which provides two useful features: screen casting and streaming of prerecorded media. Using the first feature, a customer can show their screen to a remote peer. Using the second feature, a customer can stream a prerecorded media file directly to a remote peer without any upload/download file operations. Both features just work in a web browser.

While developing our application, we also acquired basic knowledge on HTTPS and its configuration at the web server's side. We found out why it is important to use a secure layer and why it is highly recommended that you use it (some of the WebRTC features might work incorrectly or won't even work at all if you don't use a secure layer).

In this chapter...