- Modern JavaScript Applications
- Narayan Prusty
- 198字
- 2021-07-14 11:02:30
Chapter 3. Communication between Browsers in Real Time
To implement features such as audio/video chat or some other features in websites that require real-time peer-to-peer (browser-to-browser) data transfer, or need to retrieve audio/video stream from a microphone, webcam, or any other device, we had to use browser plugins such as Java and Flash. There are various issues with making websites depend on browser plugins, such as mobile browsers not supporting plugins and plugins requiring to be kept up to date. Therefore, WebRTC was introduced to solve these problems, that is, browsers that support WebRTC provide APIs to exchange data in real time directly between browsers and also retrieve stream from physical media sources without the use of plugins. In this chapter, we will discuss WebRTC and also the PeerJS library that wraps the WebRTC APIs to provide an easy to use API to work with WebRTC.
In this chapter, we'll cover the following topics:
- Discussing various APIs provided by WebRTC
- Retrieving stream from physical media input devices
- Displaying a media stream
- Discussing protocols used by WebRTC
- Exchanging media stream and arbitrary data between peers using PeerJS
- Discussing topics related to the fundamentals of WebRTC and PeerJS
- Puppet 4 Essentials(Second Edition)
- arc42 by Example
- MySQL 8 DBA基礎(chǔ)教程
- 機械工程師Python編程:入門、實戰(zhàn)與進階
- Building Mapping Applications with QGIS
- Mastering Predictive Analytics with Python
- INSTANT Sinatra Starter
- QGIS Python Programming Cookbook(Second Edition)
- Canvas Cookbook
- 深入實踐DDD:以DSL驅(qū)動復(fù)雜軟件開發(fā)
- Web前端開發(fā)技術(shù):HTML、CSS、JavaScript
- Learning C++ by Creating Games with UE4
- 微前端設(shè)計與實現(xiàn)
- Deep Learning for Natural Language Processing
- Raspberry Pi Blueprints