Two-person watch rooms
A movie for two.Miles apart.
Pick the same film on two computers. Pause for a cup of tea, skip back a scene, and pick up together. Invite your partner with a four-digit room code.
Architecture
Where’s the film?
We both have itEach browser plays its own copy. Play, pause, seek and speed changes travel between viewers.
Browser ⇄ WebSocket ⇄ BrowserFastify matches the filenames and byte sizes. Each player opens its local file and the sync engine uses timed peer messages to correct drift.
Only I have itOffer the file to your partner. Compatible formats can start playing while the rest arrives.
File → DataChannel → PlayerThe room relays WebRTC signaling. The browser sends the bytes over the negotiated connection, with TURN relay support when configured. Other containers finish transferring before playback.
Share my screenChoose a window or screen on your desktop. Your partner watches the live stream.
Screen → MediaStream → ViewerThe sharing browser captures the selected surface with your permission. The receiving player follows the stream. Available audio sources depend on your browser and operating system.
Sync lab
When two clocks disagree.
Compare two revisions on the same simulated network. Each trace follows the difference between the two playback positions after an imposed offset. Select a case to inspect its recovery.
Time to settle · before → after
36.1 s → 2.1 s
Overshoot · before → after
849.75 ms → 8.527 ms
Follower minus leader (ms)
All measurements and definitions
| Case | Settle before | Settle after | Overshoot before | Overshoot after |
|---|---|---|---|---|
| Heartbeat blackout | 36.1 s | 2.1 s | 849.75 ms | 8.527 ms |
| Ahead at 1.5× | Unsettled | 6.8 s | 4,175.148 ms | 0 ms |
| Behind at 0.75× | Unsettled | 9.4 s | 2,838.879 ms | 0 ms |
| Normal speed at 1× | 8.1 s | 8.1 s | 0 ms | 0 ms |
| Large initial gap | 0.1 s | 0.1 s | 8.497 ms | 8.497 ms |
| Already within tolerance | 0 s | 0 s | 0 ms | 0 ms |
Settling starts at the first sample inside ±300 ms that stays inside through the 60-second finish, with at least 5 seconds left. Overshoot is the largest excursion across zero, opposite the initial error. The shaded band marks ±300 ms. Each trace uses every 100 ms sample. Each case has its own symmetric vertical scale.
A separate asymmetric-network stress profile settled 0/4 cases before and 2/4 after. Long blackout and near-threshold failures remained. Stress traces. No live browser, decoder, WAN or TURN measurements are included in this simulation. Baseline JSON · Candidate JSON · Engineering report ↗
Self-host
Your own screening room.
Clone the repository and run this command inside it with Docker Compose. Open localhost:3000 in two separate browser sessions.
docker compose -f compose.local.yml up --build