Chapter 704: Parsing on Web Workers
Core Idea
:::warning We are phasing out Media Parser and are moving to Mediabunny!
Key Concepts
- Example
- Parsing on the server using a worker
- API Differences
- See also
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 Parsing on Web Workers from the official docs.
Key Takeaways
- Understand example when working with Parsing on Web Workers.
- Understand parsing on the server using a worker when working with Parsing on Web Workers.
- Understand api differences when working with Parsing on Web Workers.
- Understand see also when working with Parsing on Web Workers.
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.