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
About the Author
About the Reviewers

Chapter 3. The Media Streaming and Screen Casting Services

In the previous chapter, we learned about data channels and developed a simple file-sharing application that uses direct peer-to-peer connections. We learned about data channel types, got introduced to terms such as TLS/DTLS and SRTP/SCTP, and also covered which data channel type is suitable for what kind of tasks.

We also utilized the HTML5 File API functions when working with the file system in the JavaScript code, and we will use this knowledge when developing the demo application in this chapter.

In this chapter, we will use our knowledge about data channels and develop an application that provides two new useful features: streaming prerecorded videos and screen casting (demonstrating a screen to the remote side in real time).

Streaming prerecorded media is a standard feature of the WebRTC technology. It allows peer A to stream the prerecorded media to peer B, who can play it online. How can this be useful in real life? For example...