mirror of
https://github.com/livekit/livekit.git
synced 2026-09-16 06:22:36 +00:00
Replay every spatial layer that has a cached video frame group instead of only the highest, and let the down track's forwarder lock onto whichever layer it is targeting (dropping the others) - exactly as it does for the live broadcast. This lets a subscriber whose desired quality is not the top layer (opportunistic forwarding with desired LOW, start-at-desired-quality off) bootstrap from the layer it actually wants rather than being forced onto the highest cached layer. Pacing is applied only to packets the forwarder actually forwarded, so a layer being dropped replays instantly without sleeping and the multi-layer replay does not multiply bootstrap wall-clock. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>