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
About the Author
About the Reviewers

Integrating the TURN server with our application

Now let's integrate a WebRTC application with our just-deployed TURN server utilizing the authentication mechanism.

We will not introduce any additional specific WebRTC features in this chapter except the one with the TURN authentication, so it doesn't make sense to develop the demo application from scratch. So, we will take the application from Chapter 1, Developing a WebRTC Application and improve it.

Thus, in this chapter, I will not provide the complete source codes of the application. We will learn only the new functions and codes that are different from the original application we developed in the first chapter. Please take the application from Chapter 1, Developing a WebRTC Application, as the base or refer to the source codes supplied with the book to get the complete code of the application.

As you know from the previous sections, we will generate temporary credentials to authenticate with our TURN server. We also don't want to share...