Files
v10/packages/spf
Christian PillsburyandClaude Opus 4.8 d7a76fbf9a refactor(spf): make relocation-pipelines a DOM-free primitive
Completes the loader-pipeline extraction: relocation-pipelines moves from
behaviors/dom to primitives/ root, fully DOM-free, so it's a genuine primitive
rather than a stray non-behavior parked under behaviors/.

Two decouplings make that honest:
- Cue: the text steps are now generic over `C extends Cue` instead of naming the
  DOM `VTTCue`. Relocation only mutates startTime/endTime, which the structural
  media/types `Cue` already covers — no new type needed.
- metadata resolver: resolveVttSegmentMetadata + TextSegmentMetadata move to a
  DOM-free media/text/resolve-vtt-metadata.ts (fetch + parseVttTimestampMap, no
  document). The document-based resolveVttSegment stays in media/dom/text.

primitives/dom is never needed. relocation's test moves to primitives/tests
(now a Node test, not Chromium) with its behavior-derive dependency replaced by
an inline no-op (only the discover steps are exercised).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-15 11:23:21 -07:00
..
2026-07-07 13:08:22 -05:00
2026-07-07 13:08:22 -05:00

@videojs/spf

package-badge

⚠️ 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:

License

Apache-2.0