Book Image

WebRTC Cookbook

By : Andrii Sergiienko
Book Image

WebRTC Cookbook

By: Andrii Sergiienko

Overview of this book

Table of Contents (15 chapters)
WebRTC Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Using OpenTok to create a WebRTC application


OpenTok is a proprietary framework that allows you to build WebRTC-based applications using the provided SDK. In this recipe, we will build a simple demo application by utilizing the basic features of the tool.

Getting ready

To use this framework, you should register with the OpenTok system, and get a unique developer API ID. To use this system, you should have three keys: the API key, session ID, and token. The following instructions cover the process of creating these keys:

  1. Navigate to https://tokbox.com/opentok/ and click on Sign Up.

  2. Fill the form and click on the Sign Up button:

  3. Check for an e-mail from OpenTok (TokBox), they will send a confirmation e-mail with the API key. Write down the API key—this is the first key. Confirm your registration with their system by clicking on the appropriate link in the e-mail:

  4. Navigate to https://dashboard.tokbox.com—find the Projects section and click on the View Details button:

  5. In the next page, you will see...