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
- Understand api when working with webcodecsController().
- Understand pause() when working with webcodecsController().
- Understand resume() when working with webcodecsController().
- Understand abort() when working with webcodecsController().
- 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.