Files
v10/packages
Christian PillsburyandClaude Opus 4.8 a09473a372 refactor(spf): extract loader step vocabulary to primitives; match box-time by track_id
Bundled as one WIP checkpoint — the changes interleave in relocation-pipelines.ts
and media/types, so they can't be split per-file. To be curated before the PR.

- Match box-time by track_id: the default relocation pipeline now uses
  findMediaTrack + readBaseMediaDecodeTime (init tkhd track_id → segment tfhd
  track_id) instead of the first-traf presumptive readers, so muxed ISO-BMFF
  (e.g. a clcp caption traf) reads the media track's origin rather than relying
  on box order. Adds MediaContainerData.trackId + a caption-first-muxing test.

- Rename relocation-steps → relocation-pipelines; reframe it as the
  config-supplied, loader-facing half of establishStartMediaTime (the relocation
  analog of track-switching's constraint/rule chain).

- Extract the loader step vocabulary + base steps and the SourceBuffer message
  DTOs out of the actors into primitives/, behind a structural AppendSink seam so
  the pipeline names no concrete actor; the loader actors keep only scheduling.

- Decouple the vocabulary from the DOM: add media/types SegmentData and make
  media/dom AppendData an alias, so the whole v/a load pipeline lives DOM-free in
  primitives/ root.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-15 10:55:27 -07:00
..