@remotion/media: add <Video crossOrigin> for parser fetch credentials#6838
Merged
JonnyBurger merged 4 commits intoremotion-dev:mainfrom Mar 17, 2026
Conversation
Thread a top-level crossOrigin prop through Video preview playback and map it to UrlSource request credentials so consumers can opt into cookie-backed fetches without forcing credentials for all requests. Made-with: Cursor
Contributor
|
no API key found. Pullfrog requires at least one LLM provider API key. to fix this, add the required secret to your GitHub repository:
configure your model at https://pullfrog.com/console/remotion-dev/remotion |
Replace the crossOrigin prop (which mapped HTML video element values to fetch credentials) with a direct credentials: RequestCredentials prop. Thread credentials through getSinks/getSink and document the new prop. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
… Audio Pass credentials prop through extractFrame, extractAudio, extractFrameAndAudio, extractFrameViaBroadcastChannel, and the broadcast channel request type. Add credentials to AudioProps and audio-for-preview. Add AvailableFrom tag to Video docs and add credentials documentation for Audio. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@remotion/media: add <Video crossOrigin> for parser fetch credentials
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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
crossOriginprop to@remotion/mediaVideopropsVideo->VideoForPreview->MediaPlayercrossOriginto MediabunnyUrlSourcerequestInit.credentials(use-credentials->include,anonymous/empty ->same-origin)crossOriginis not providedTest plan
<Video src=... crossOrigin=\"use-credentials\" />against a cookie-protected media URL and confirm format detection no longer 401s<Video src=... />withoutcrossOriginpreserves existing behaviorfallbackOffthreadVideoProps.crossOrigin) continues to work as beforeMade with Cursor