Capítulo 715 de 988

Chapter 715: defaultOnAudioTrackHandler()

Core Idea

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

Key Concepts

  • Algorithm
  • See also

Code Examples

await convertMedia({
  src: 'https://remotion.media/BigBuckBunny.mp4',
  container: 'webm',
  onVideoTrack: (params) => {
    // Custom logic for handling video tracks
    // ...

    // Fall back to the default behavior
    return defaultOnVideoTrackHandler(params);
  },
});
  • What it demonstrates: Usage pattern for defaultOnAudioTrackHandler() from the official docs.

Key Takeaways

  1. Understand algorithm when working with defaultOnAudioTrackHandler().
  2. Understand see also when working with defaultOnAudioTrackHandler().

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.