Skip to content

Conversation

@JonnyBurger
Copy link
Member

No description provided.

Copilot AI review requested due to automatic review settings January 5, 2026 16:20
@vercel
Copy link
Contributor

vercel bot commented Jan 5, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
bugs Ready Ready Preview, Comment Jan 5, 2026 4:32pm
remotion Ready Ready Preview, Comment Jan 5, 2026 4:32pm

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR optimizes the <Thumbnail> component by preventing unnecessary AudioContext creation, since thumbnails are static frames and don't require audio functionality.

Key Changes:

  • Added audioEnabled boolean parameter throughout the audio context hierarchy
  • Set audioEnabled={false} for Thumbnail components to skip AudioContext creation
  • Refactored useSingletonAudioContext to use object parameters for better clarity
  • Simplified player-example to focus on Thumbnail demonstration

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/player/src/Thumbnail.tsx Passes audioEnabled={false} to prevent audio context creation in thumbnails
packages/player/src/SharedPlayerContext.tsx Adds audioEnabled prop to interface and threads it through to SharedAudioContextProvider
packages/player/src/Player.tsx Passes audioEnabled (implicitly true) to maintain audio functionality in Player
packages/player-example/pages/index.tsx Simplifies example by removing Player and other components, focusing only on Thumbnail demonstration
packages/core/src/audio/use-audio-context.ts Refactors to object parameters and adds early return when audioEnabled is false
packages/core/src/audio/shared-audio-tags.tsx Adds audioEnabled prop and passes it to useSingletonAudioContext
packages/core/src/RemotionRoot.tsx Changes audioEnabled/videoEnabled types from boolean | null to boolean and passes audioEnabled to SharedAudioContextProvider

@JonnyBurger JonnyBurger merged commit 7b68f50 into main Jan 5, 2026
15 checks passed
@JonnyBurger JonnyBurger deleted the dont-create-audio-context branch January 5, 2026 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants