mirror of
https://github.com/zoriya/v10.git
synced 2026-08-14 09:59:44 +00:00
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>