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.
@videojs/spf
⚠️ Beta Experimental adoption in real projects.
Overview
@videojs/spf is a lightweight, bundle-size-optimized streaming engine for Video.js 10. It provides
HLS playback with adaptive bitrate switching, WebVTT captions, and MSE support.
Community
If you need help with anything related to Video.js 10, or if you'd like to casually chat with other members: