O'Reilly logo

WebRTC Blueprints by Andrii Sergiienko

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required