Decision 1
Schedule playback at a future server timestamp
- Problem
- Playing on packet arrival lets network jitter become frame drift above 100 ms.
- Options
- Play when the command arrives
- Send a future server time and let each client wait locally
- Decision
- Each client computes
timeOffset = ServerTime − LocalTime − RTT/2, waits until the local equivalent of the target time, and seeks forward if the packet arrived late. - Result
- ±1–2 frame (≈33 ms) sync across 5 devices, validated with frame logs.
- Trade-off
- Commands need lead time, and the RTT/2 estimate assumes symmetric latency.
