Chapter 210: <Html5Video>
Core Idea
previously called <Video>
Key Concepts
- API
- Props
- src
- trimBefore?<AvailableFrom v="4.0.319"/>
- trimAfter?<AvailableFrom v="4.0.319"/>
startFrom?
endAt?
- style?
Code Examples
export const MyComposition = () => {
return (
<AbsoluteFill>
<Html5Video src={staticFile('video.webm')} />
</AbsoluteFill>
);
};
- What it demonstrates: Usage pattern for
<Html5Video> from the official docs.
Key Takeaways
- Understand api when working with
<Html5Video>.
- Understand props when working with
<Html5Video>.
- Understand src when working with
<Html5Video>.
- Understand trimbefore?<availablefrom v="4.0.319"/> when working with
<Html5Video>.
- Understand trimafter?<availablefrom v="4.0.319"/> when working with
<Html5Video>.
Connects To
- Animatedimage: related page in the Assets & Media section.
- Delaying: related page in the Assets & Media section.
- Exporting: related page in the Assets & Media section.