Skip to main content

Support for WebCodecs API

  • January 19, 2023
  • 0 replies
  • 319 views

Michael_Yagudaev

We are building a plugin that allows users to render figma prototypes as videos.

To support that we wanted to use WebCodecs API (Video processing with WebCodecs - Chrome Developers) which is already implemented in chrome.

It works in most modern browsers, but to our surprise trying to access window.VideoEncoder results in undefined exception.

It is however possible to access it if you specify a null-origin frame for your iFrame and serve it from our own servers.

We are wondering why that is? Is there a security concern? Is it just set to undefined because it hasn’t been whitelisted as an approved browser API yet?

It is a really powerful API that opens a lot of doors to creating really interesting things with Figma.

0 replies

Be the first to reply!

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings