mirror of
https://github.com/zoriya/v10.git
synced 2026-08-15 02:14:06 +00:00
Add createLiveHlsEngine: reuses the VoD engine's MSE/segment/ABR behaviors, swaps one-shot resolve* for the per-type live reload loop, defaults resolveDuration to Infinity, and adds anchorLiveTracks — a behavior that applies the per-track stream-origin anchor to the selected tracks so segment.startTime ≈ native PTS (what the segment loader matches currentTime against). Cross-track alignment is intentionally not composed yet (it would fight the per-track anchor in a re-firing effect); residual skew is absorbed by native-PTS A/V sync. Demuxed audio+video; text/discontinuity out of scope. Not yet wired to a DOM element — engine composition + anchor behavior only, both typecheck/build green. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>