- 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范例大全
- 認識編程:以Python語言講透編程的本質
- 程序員數學:用Python學透線性代數和微積分
- HBase從入門到實戰
- Practical Windows Forensics
- Hands-On Swift 5 Microservices Development
- 零基礎輕松學SQL Server 2016
- QGIS By Example
- H5頁面設計:Mugeda版(微課版)
- Kotlin從基礎到實戰
- 移動界面(Web/App)Photoshop UI設計十全大補
- Unity 2D Game Development Cookbook
- SSM開發實戰教程(Spring+Spring MVC+MyBatis)
- RubyMotion iOS Develoment Essentials
- 深入實踐DDD:以DSL驅動復雜軟件開發