-
Notifications
You must be signed in to change notification settings - Fork 0
WebRTC & Sync Engine Architecture
Ram Chouhan Full-Stack Engineer edited this page Sep 6, 2026
·
1 revision
This document provides a technical breakdown of MovieNight's peer-to-peer media pipeline, SDP munging engine, and sub-second drift synchronization.
MovieNight uses a decentralized mesh network:
- Signaling: Conducted through PeerJS public broker servers to perform ICE candidate gathering and SDP exchange.
-
Data Channels: Reliable
RTCDataChannelconnections are maintained between all participants for room state, chat messages, and sync heartbeats. - Media Tracks: Presenters broadcast SRTP encrypted video and audio streams directly to connected peers.
Standard browser WebRTC drops streaming quality to 360p or 480p to conserve bandwidth. MovieNight prevents this through custom SDP munging: