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

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
主站蜘蛛池模板: 霍林郭勒市| 抚松县| 民勤县| 临西县| 叶城县| 四川省| 获嘉县| 公主岭市| 曲靖市| 澎湖县| 犍为县| 吴桥县| 高台县| 大埔区| 南靖县| 温宿县| 临汾市| 鸡泽县| 交口县| 惠水县| 卢湾区| 绥滨县| 马鞍山市| 瑞金市| 阜南县| 江津市| 屏东县| 洛浦县| 景宁| 离岛区| 宿松县| 手游| 巴马| 广元市| 增城市| 昌图县| 天津市| 龙岩市| 鄂州市| 威远县| 东安县|