Docs: Modernize video sequence guide - #9100
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes — modernized the "Playing videos in sequence" how-to guide by replacing <OffthreadVideo> with <Video> from @remotion/media and switching duration discovery from @remotion/media-parser to Mediabunny's Input.computeDuration().
- Restructured the guide into three clear steps — creating the
<Series>of<Video>clips, calculating durations with Mediabunny, and registering the<Composition>. - Adopted
<Video>andpremountForin the first example — the new component is the documented preferred video component;premountForreplaces the old standalone premounting section. - Replaced
parseMedia()with Mediabunny — thecalculateMetadata()example now usesInput+UrlSourcewithcomputeDuration(), matching the canonical patterns in the Mediabunny metadata and<OffthreadVideo>looping docs. - Added CORS and native-buffering notes — the rewrite accurately calls out that Mediabunny loads via
fetch()and that<Video>uses the Player buffer state by default.
Kimi K2 (free via Pullfrog for OSS) | 𝕏
Contributor
There was a problem hiding this comment.
✅ No new issues in the incremental changes.
Reviewed changes — two follow-up commits adjusting the step markup and reducing the premountFor duration.
- Fixed
<Step>formatting — removed bullet markers and joined the steps with<br />, matching the fragile<Step>component conventions. - Reduced premounting from 4 seconds to 1 second — changed
premountFor={4 * fps}to{fps}and updated the explanation to say "one second".
Kimi K2 (free via Pullfrog for OSS) | 𝕏
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.

Summary
<Video>from@remotion/mediaand include premounting in the first exampleparseMedia()with Mediabunny'sInput.computeDuration()and document CORS requirementsTesting
bun prewarm-twoslash.ts(frompackages/docs)bun run buildbun run stylecheck