Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • WebRTC Blueprints
  • Toc
  • feedback
WebRTC Blueprints

WebRTC Blueprints

By : Andrii Sergiienko
4.2 (9)
close
WebRTC Blueprints

WebRTC Blueprints

4.2 (9)
By: Andrii Sergiienko

Overview of this book

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

A simple file-sharing service – the browser application


The client code of our new application is very similar to the previous application in some parts. Nevertheless, it will be significantly different in the core side, so we will rework it and discuss it in detail in this chapter.

The WebRTC API wrapper

We developed a wrapper for the WebRTC API in the previous chapter, so now it will be even easier to do the same for our new application. Now we will add some new code relevant to the Data API and for HTML5-specific API functions, which will be useful for file I/O operations, by performing the following steps:

  1. Create the www/myrtclib.js file as we already did in Chapter 1, Developing a WebRTC Application. We need to declare an entity to control the WebRTC peer connection API. Using the myrtcadapter.js library, we will detect the browser type and version, and assign a relevant API function to this entity.

  2. We also need to detect the web browser's version in order to handle it appropriately by...

bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete