Skip to content

[pull] main from remotion-dev:main#845

Merged
pull[bot] merged 13 commits into
code:mainfrom
remotion-dev:main
May 19, 2026
Merged

[pull] main from remotion-dev:main#845
pull[bot] merged 13 commits into
code:mainfrom
remotion-dev:main

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented May 19, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

mvanhorn and others added 13 commits May 15, 2026 17:11
`preservesPitch?: boolean` is now a per-component prop on OffthreadVideo,
Html5Video (Video), and Html5Audio (Audio), threading through to the
matching `HTMLMediaElement.preservesPitch` setter via the same effect that
syncs `playbackRate`. Default behavior is unchanged: when the prop is
omitted, the browser default applies and nothing is written.

The earlier approach (a Player-level prop wired through PlaybackRateContext
and the global useMediaPlayback consumer) is dropped per maintainer feedback.
Player, Thumbnail, TimelineContext, and the player-level validator are back
to their pre-PR state. validate-media-props gains a boolean validator that
matches the existing peer-validator message format.

Tests cover default, true, false, and invalid input on each of the three
component validators plus the runtime sync to HTMLMediaElement.preservesPitch.

Docs: removed the entry from packages/docs/docs/player/api.mdx and added
matching entries to html5-audio.mdx, html5-video.mdx, and offthreadvideo.mdx.

Fixes #7070
…w-only

@JonnyBurger asked to expose preservePitch on Audio/Video/OffthreadVideo,
matching his preferred spelling. The PR already touched the media components
(no Player wiring), so the change is a rename to preservePitch plus:

- Default preservePitch=true (matches HTMLMediaElement.preservesPitch default)
- Render path no longer assigns preservesPitch on the DOM element; toneFrequency
  remains the render-time pitch control
- Docs note that preservePitch only affects preview playback; render uses
  toneFrequency

Tests updated to use the new prop name and the true default. Verification
gap: sandbox could not run pnpm install (registry unreachable); upstream CI
will catch any regression.
Add preservePitch to fallbackHtml5AudioProps and document it alongside fallbackOffthreadVideoProps.

Co-authored-by: Cursor <cursoragent@cursor.com>
…Rendering

Match VideoForRendering: strip preview-only preservePitch before spreading props onto Img.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@pull pull Bot locked and limited conversation to collaborators May 19, 2026
@pull pull Bot added the ⤵️ pull label May 19, 2026
@pull pull Bot merged commit 1fa6c37 into code:main May 19, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants