- Modern JavaScript Applications
- Narayan Prusty
- 212字
- 2021-07-14 11:02:31
Chapter 4. Building a Chatroulette
The best way to master MediaStream and PeerJS is by building real-world applications, which is what we will do in this chapter. A chatroulette is a website that pairs random site visitors together for webcam and text-based conversation. Discussing how to build a chatroulette will help us to study PeerJS and PeerServer in depth, as it requires us to integrate PeerServer with Express. We will also add media controls to our site in order to pause/resume local MediaStream and allow the user to choose their desired microphone/webcam, which will help us to study MediaStream even more in depth. We will be actually creating a chatroulette that only allows the users of a particular country to chat, which would require an extra step of verification before connecting to the PeerServer; therefore, taking us even deeper into the integration of PeerServer into Express.
In this chapter, we will cover the following topics:
- Running your own instance of PeerServer
- Creating a custom PeerServer
- Integrating PeerServer with Express
- Verify users for connecting to PeerServer
- Finding the IP address and country of a user connected to the server
- Allowing the user to use a microphone and webcam directly on the webpage
- Discussing the requirements for building a completely working chatroulette
- Java Web開(kāi)發(fā)學(xué)習(xí)手冊(cè)
- 在最好的年紀(jì)學(xué)Python:小學(xué)生趣味編程
- PHP 7底層設(shè)計(jì)與源碼實(shí)現(xiàn)
- Flink SQL與DataStream入門、進(jìn)階與實(shí)戰(zhàn)
- Learning SAP Analytics Cloud
- 小程序,巧運(yùn)營(yíng):微信小程序運(yùn)營(yíng)招式大全
- 零基礎(chǔ)學(xué)Python網(wǎng)絡(luò)爬蟲(chóng)案例實(shí)戰(zhàn)全流程詳解(高級(jí)進(jìn)階篇)
- Linux:Embedded Development
- Scala for Machine Learning(Second Edition)
- C語(yǔ)言程序設(shè)計(jì)簡(jiǎn)明教程:Qt實(shí)戰(zhàn)
- QGIS 2 Cookbook
- Python Machine Learning Cookbook
- Python編程基礎(chǔ)教程
- 關(guān)系數(shù)據(jù)庫(kù)與SQL Server 2012(第3版)
- 第五空間戰(zhàn)略:大國(guó)間的網(wǎng)絡(luò)博弈