Repository navigation
[1/3] feat: play html5 frames as they bake - #271
Merged
Merged
Conversation
github-actions Bot
pushed a commit
that referenced
this pull request
Oct 29, 2026
# [2.30.0](v2.29.5...v2.30.0) (2026-10-29) ### Bug Fixes * give html5 and rich-caption clips their own look on the timeline ([#275](#275)) ([7a7eb39](7a7eb39)) ### Features * hold the nearest baked html5 frame while playing ([#272](#272)) ([4f50166](4f50166)) * play html5 frames as they bake ([#271](#271)) ([7e837e6](7e837e6)) * tell viewers when html5 playback is buffering ([#274](#274)) ([65098cf](65098cf))
|
🎉 This PR is included in version 2.30.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Until an html5 clip finished baking, playing it showed full-size stills rendered on demand. Clips also baked one after another, so an edit with several overlapping html5 clips stayed choppy for most of its wait.
A bake now stores each frame at its index as soon as the frame lands. While a clip's first bake runs, the clip plays those frames instead of rendering stills. A bake starts at the playhead's frame. Pages only seek forward, so the frames before the playhead come from a second fresh page. Bakes take turns frame by frame, ranked by the frame playback needs next, so overlapping clips under the playhead fill in together. All bakes share one 256 MiB in-flight budget, so taking turns doesn't multiply memory.
Export still renders stills mid-bake, and the cache still stores only complete bakes. A sharper re-bake keeps the complete frames on screen until it finishes.
Size: 465 lines, of which 175 are source and the rest tests. The store, the turn-taking and the playback of partial frames depend on each other, so none of them can ship alone.
Squash subject:
[1/3] feat: play html5 frames as they bake. This cuts a minor release.Verify:
npx jest tests/html5-player.test.ts tests/bake-queue.test.ts tests/bake-order.test.ts. Then open an edit with several overlapping html5 clips and press play straight away. Stretches that are already baked should play smoothly before the preparing count finishes.Risk: medium. The capture loop and the queue changed shape. A bake that stalls leaves stills on screen, as before.