mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
1.4 KiB
1.4 KiB
status, date, definition
| status | date | definition |
|---|---|---|
| implemented | 2026-05-20 | sketched |
Audio playback
Single-rendition audio playback is the audio-specific layer of the HLS engine. Shared MediaSource, buffering, preload, and replacement behavior is recorded by their owning features and implemented in source.
Implemented decision
The engine parses audio renditions, resolves one rendition when a source loads, creates the audio buffer path, and loads its segments. Audio is modeled symmetrically with video and text so per-track behavior can compose without a media-type-specific engine architecture.
Selection is intentionally stable for the current source. Mid-stream language or rendition switching belongs to multi-language audio, and bandwidth-driven selection belongs to audio ABR.
Boundaries
- Browser MediaSource owns audio/video synchronization.
- Buffer policy is owned by buffer management.
- MediaSource lifecycle is owned by the MSE/MMS pipeline.
- Cleanup across a new source is owned by source replacement.
- Surround and audio-only optimization are independent follow-ups.
Current sources of truth
- HLS engine composition and adapter tests:
packages/spf/src/playback/engines/hls/ - Buffer and segment actors:
packages/spf/src/playback/actors/dom/ - Track resolution and selection:
packages/spf/src/playback/behaviors/