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

Creating an application using RTCMultiConnection


This recipe covers the process of creating a simple WebRTC application using an open source RTCMultiConnection framework. This is a JavaScript-based framework that allows you to build applications and services using many WebRTC features, including experimental features.

Getting ready

To work with this framework, we will build a basic WebRTC service that supports private virtual rooms for videoconferencing. You will need to write some HTML and JavaScript code, which does not need to develop any server-side parts. So, having just a text editor and a WebRTC compliant web browser should be enough to work on this recipe.

How to do it…

The RTCMultiConnection tool takes all of the work regarding the signaling on its own. Thus, you can concentrate on the client side and UI.

  1. Create an empty HTML file and add the following code inside it:

    <!DOCTYPE html>
    <html>
    <head lang="en">
        <meta charset="UTF-8">
  2. Include the HTML style supplied...