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

Building a video conference using SimpleWebRTC


SimpleWebRTC is a very easy-to-use framework written in JavaScript. Using this product, you can start your first video conference in just one minute. In this recipe, we will cover the process of creating of a basic WebRTC application using the SimpleWebRTC software.

Getting ready

In this recipe, we will create a simple HTML page by utilizing a SimpleWebRTC framework. So, you will need a text editor and a WebRTC compliant web browser. If you're using Firefox, the demo might be executed from the local filesystem; if you're using Chrome, you should use a web server—otherwise, the browser will prohibit the running of the application.

How to do it…

To build a basic videoconference using this tool, you need to create just one HTML web page. You don't even need to register an account in the vendor's system.

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

    <!DOCTYPE html>
    <html>
    <head lang="en">
    <meta charset="UTF-8">
  2. Include a...