mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
Opt-in relocateTimestampOrigin on the HLS engine. The video loader reads each track's decode-time origin (tfdt baseMediaDecodeTime / mdhd timescale) from the init + first media segment, then relocates the buffer to 0-based via SourceBuffer.timestampOffset = -origin, so currentTime/seekable/duration stay 0-based with no adapter translation. Off by default (zero-PTS VOD pays nothing). The established offset is published on the segment-loader snapshot so the text path can rebase cues onto the same timeline: cueFinal = cueNative + timestampOffset, where cueNative applies the X-TIMESTAMP-MAP correction (Apple) or the absolute cue time (map-less Mux, which can't self-derive the origin and reads the A/V-established one). Checkpoint before the composition-driven refactor.