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
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

The media streaming and screen casting service


We are finished with the server side (the signaling server) and web server configurations; now it's time to write some code in JavaScript.

Our application will have two features: prerecorded media streaming and screen casting.

For the first feature, we will read the media file chunk by chunk and send its binary data to the remote side using the WebRTC data channels we learned about in the previous chapter. The remote side will receive these chunks and play back the media in real time.

The second feature is experimental, and currently, only Chrome can screen cast the desktop; we will use a special media type for this, and a lot of code will be very similar to the code we learned in Chapter 1, Developing a WebRTC Application.

Developing a WebRTC API wrapper

We will use our API wrapper to make the development process easy and convenient.

In general, the wrapper will be very similar to the one we developed for the first two chapters. Some code will be...