Chapter 690: parseMediaOnWebWorker()
Core Idea
:::warning We are phasing out Media Parser and are moving to Mediabunny!
Key Concepts
Code Examples
const result = await parseMediaOnWebWorker({
src: 'https://remotion.media/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 parseMediaOnWebWorker() from the official docs.
Key Takeaways
- Understand api when working with parseMediaOnWebWorker().
- Understand see also when working with parseMediaOnWebWorker().
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.