Capítulo 733 de 988

Chapter 733: webcodecsController()

Core Idea

:::warning We are phasing out Remotion WebCodecs and are moving to Mediabunny!

Key Concepts

  • API
  • pause()
  • resume()
  • abort()
  • addEventListener()
  • removeEventListener()
  • Events
  • pause

Code Examples

const controller = webcodecsController();

convertMedia({
  src: 'https://www.w3schools.com/html/mov_bbb.mp4',
  container: 'webm',
  controller,
});

// Pause
controller.pause();

// Resume
controller.resume();

// Abort
controller.abort();
  • What it demonstrates: Usage pattern for webcodecsController() from the official docs.

Key Takeaways

  1. Understand api when working with webcodecsController().
  2. Understand pause() when working with webcodecsController().
  3. Understand resume() when working with webcodecsController().
  4. Understand abort() when working with webcodecsController().
  5. Understand addeventlistener() when working with webcodecsController().

Connects To

  • Buffer Writer: related page in the WebCodecs (@remotion/webcodecs) section.
  • can Copy Audio Track: related page in the WebCodecs (@remotion/webcodecs) section.
  • can Copy Video Track: related page in the WebCodecs (@remotion/webcodecs) section.