How webrtc/firebasertc works
This repository is a Firebase/WebRTC video-chat codelab. Its intended workflow is to capture local camera and microphone media, create or join a room, exchange WebRTC signaling through Firestore, and establish a peer connection for remote media. The sampled app shows media capture, peer setup, room lookup and cleanup; room creation and signaling sections are placeholders, so their detailed wiring cannot be confirmed. The README documents Firestore signaling as the intended capability.
Main entry points: app.js Call controller · index.html Chat interface
Components 8
Browser client
- Chat interface
public/index.html - Call controller
public/app.js
Call connection
- Camera and microphone
- WebRTC peer
- Remote media playback
public/index.html
Room signaling
- Firebase Firestore
- Room and candidate data
Other components
- Participant
Connections 12
- Participant → Chat interface: uses
- Chat interface → Call controller: dispatches actions
- Call controller → Chat interface: updates controls
- Call controller → Camera and microphone: requests media
- Camera and microphone → Call controller: returns stream
- Call controller → WebRTC peer: creates peer
- Call controller → WebRTC peer: adds tracks
- WebRTC peer → Call controller: delivers remote tracks
- Call controller → Remote media playback: sets video streams
- Call controller → Firebase Firestore: reads room; deletes on hangup
- Firebase Firestore → Room and candidate data: reads and deletes
- Call controller → Firebase Firestore: uses for signaling