Skip to content

Conversation

@samohovets
Copy link
Member

Add canRenderVideoCodec() and canRenderAudioCodec() functions to check if the browser supports encoding with specific codecs before attempting to render. These functions wrap mediabunny's canEncodeVideo and canEncodeAudio APIs with Remotion's type mappings.

Closes #6103

Add canRenderVideoCodec() and canRenderAudioCodec() functions to check
if the browser supports encoding with specific codecs before attempting
to render. These functions wrap mediabunny's canEncodeVideo and
canEncodeAudio APIs with Remotion's type mappings.

Closes #6103
@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 3:07pm
remotion Error Error Jan 5, 2026 3:07pm

Add a single canRender() function that mirrors renderMediaOnWeb() options
to check if the browser supports rendering with a given configuration.
Returns structured data about video and audio codec support so developers
can provide appropriate user feedback.

The existing canRenderVideoCodec() and canRenderAudioCodec() functions
are kept as lower-level utilities for granular codec checks.
@samohovets
Copy link
Member Author

@claude fix monorepo build

@claude
Copy link

claude bot commented Jan 5, 2026

Claude finished @samohovets's task in 3m 20s —— View job


Fixing monorepo build ✓

  • Investigate build failure
  • Fix formatting issues in new files
  • Commit and push changes

Issue found: Prettier formatting error in can-render-video-codec.ts - the type import statement wasn't split across multiple lines according to Prettier's formatting rules.

Fix applied: Reformatted the import statement to comply with the project's Prettier configuration (which includes the prettier-plugin-organize-imports plugin).

Commit: a46defc

The build should now pass. The CI will re-run automatically with the new commit.

--- | Branch

Split type import statement across multiple lines to comply with Prettier formatting rules.

Co-authored-by: Igor Samokhovets <[email protected]>
@samohovets samohovets closed this Jan 7, 2026
@samohovets samohovets deleted the claude/add-mediabunny-codec-support-2iLkA branch January 7, 2026 13:09
@samohovets samohovets changed the title @remotion/web-renderer: Add utility to check if render can be performed [DRAFT] @remotion/web-renderer: Add utility to check if render can be performed Jan 7, 2026
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.

Web renderer: add an utility for checking if render can be performed

3 participants