Capítulo 689 de 988

Chapter 689: parseMediaOnServerWorker()

Core Idea

:::warning We are phasing out Media Parser and are moving to Mediabunny!

Key Concepts

  • API
  • See also

Code Examples

const result = await parseMediaOnServerWorker({
  src: '/tmp/video.mp4',
  fields: {
    durationInSeconds: true,
    dimensions: true,
  },
});

console.log(result.durationInSeconds); // 10
console.log(result.dimensions); // {width: 1920, height: 1080}
  • What it demonstrates: Usage pattern for parseMediaOnServerWorker() from the official docs.

Key Takeaways

  1. Understand api when working with parseMediaOnServerWorker().
  2. Understand see also when working with parseMediaOnServerWorker().

Connects To

  • Download and Parse: related page in the Media Parser (@remotion/media-parser) section.
  • Download and Parse Media: related page in the Media Parser (@remotion/media-parser) section.
  • Fast and Slow: related page in the Media Parser (@remotion/media-parser) section.