Files
v10/packages
Christian PillsburyandClaude Opus 4.8 be8d28d687 refactor(spf): read recover-end-stall buffered end from SourceBuffers (spike)
Extract `getMinBufferedEnd(buffers)` into media/dom/mse/duration.ts — the pure
counterpart to `getMaxBufferedEnd` (max bounds the presentation end for
`duration`; min bounds the reachable end when tracks end at slightly different
times, e.g. skewed A/V near end-of-stream).

`recover-end-stall` now sources its reachable buffered end from
`getMinBufferedEnd(mediaSource.sourceBuffers)` — the per-track (video/audio)
SourceBuffer ends — instead of the `mediaElement.buffered` aggregate.
Functionally equivalent (the aggregate is the intersection) but reads the
SourceBuffers directly and shares a named primitive. The `shouldForceEnded`
predicate is unchanged.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-14 06:57:10 -07:00
..