官术网_书友最值得收藏!

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
主站蜘蛛池模板: 新邵县| 新民市| 凌海市| 米易县| 故城县| 定结县| 潮州市| 周口市| 孝感市| 福清市| 临武县| 建昌县| 莎车县| 米脂县| 临安市| 正宁县| 天长市| 冕宁县| 兴安盟| 石台县| 葵青区| 微博| 南澳县| 怀来县| 张家界市| 巴中市| 玛多县| 伊金霍洛旗| 滕州市| 巴青县| 高要市| 安西县| 石棉县| 辛集市| 广德县| 霍城县| 炎陵县| 连城县| 手机| 长治市| 景宁|