Chapter 683: hasBeenAborted()
Core Idea
:::warning We are phasing out Media Parser and are moving to Mediabunny!
Key Concepts
Code Examples
try {
await parseMedia({
src: 'https://www.w3schools.com/html/mov_bbb.mp4',
});
} catch (e) {
if (hasBeenAborted(e)) {
console.log('Has been aborted by user / developer');
} else {
console.error('Download failed', e);
}
}
- What it demonstrates: Usage pattern for hasBeenAborted() from the official docs.
Key Takeaways
- Understand see also when working with hasBeenAborted().
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.