Chapter 689: parseMediaOnServerWorker()
Core Idea
:::warning We are phasing out Media Parser and are moving to Mediabunny!
Key Concepts
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
- Understand api when working with parseMediaOnServerWorker().
- 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.