Chapter 684: mediaParserController()
Core Idea
:::warning We are phasing out Media Parser and are moving to Mediabunny!
Key Concepts
- API
- pause()
- resume()
- abort()
- seek(timeInSeconds: number)
- getSeekingHints()
- addEventListener()
- removeEventListener()
Code Examples
const controller = mediaParserController();
parseMedia({
src: 'https://www.w3schools.com/html/mov_bbb.mp4',
controller,
});
// Pause
controller.pause();
// Resume
controller.resume();
// Abort
controller.abort();
- What it demonstrates: Usage pattern for mediaParserController() from the official docs.
Key Takeaways
- Understand api when working with mediaParserController().
- Understand pause() when working with mediaParserController().
- Understand resume() when working with mediaParserController().
- Understand abort() when working with mediaParserController().
- Understand seek(timeinseconds: number) when working with mediaParserController().
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.