Chapter 715: defaultOnAudioTrackHandler()
Core Idea
:::warning We are phasing out Remotion WebCodecs and are moving to Mediabunny!
Key Concepts
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
- Understand algorithm when working with defaultOnAudioTrackHandler().
- 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.