A swap onto a slow stream goes back by everything the slow stream lacks #180

Closed
opened 2026-11-16 16:21:31 -05:00 by cmoriarty · 0 comments
Owner

What happens

In the live tests of 2026-11-16 at 20:23:59 UTC, pressing Play on Greece vs. Serbia's shd247.world link (pace 0.90×) logged:

joined on one moment by the sound (confirmed): the picture moves −43.38 s, 2 of the old stream's segments dropped, 5 of the new one's taken, 26.7 s in hand

The stream was 16.7 s short of what had already been sent. The other 26.7 s was what the join kept in hand.

Why

  • A join that cannot be exact goes back by the shortfall plus what the new stream needs in hand (aim.choose, Channel._needs).
  • That need is the watch's buffer_seconds: the largest shortfall of the media listed against the clock over the watch window. For a source slower than real time that shortfall grows for the whole window, so the need is whatever the buffer's depth allows: here 5 segments, 26.7 s.
  • No buffer makes up a steady shortfall; it only puts off a stall.

Done when

  • A join keeps at most the head start in hand ("Start behind live", 15 s by default), as a fresh tune of that stream would. The picture then goes back by the shortfall and at most 15 s.
  • A steady stream's smaller need is unchanged. Germany vs. Netherlands' 8.3 s stays 8.3 s.
  • A test for each.
## What happens In the live tests of 2026-11-16 at 20:23:59 UTC, pressing Play on Greece vs. Serbia's shd247.world link (pace 0.90×) logged: > joined on one moment by the sound (confirmed): the picture moves −43.38 s, 2 of the old stream's segments dropped, 5 of the new one's taken, 26.7 s in hand The stream was 16.7 s short of what had already been sent. The other 26.7 s was what the join kept in hand. ## Why - A join that cannot be exact goes back by the shortfall plus what the new stream needs in hand (`aim.choose`, `Channel._needs`). - That need is the watch's `buffer_seconds`: the largest shortfall of the media listed against the clock over the watch window. For a source slower than real time that shortfall grows for the whole window, so the need is whatever the buffer's depth allows: here 5 segments, 26.7 s. - No buffer makes up a steady shortfall; it only puts off a stall. ## Done when - A join keeps at most the head start in hand ("Start behind live", 15 s by default), as a fresh tune of that stream would. The picture then goes back by the shortfall and at most 15 s. - A steady stream's smaller need is unchanged. Germany vs. Netherlands' 8.3 s stays 8.3 s. - A test for each.
Sign in to join this conversation.
No labels
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
cmoriarty/sports-breaker#180
No description provided.