Capítulo 210 de 988

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

  1. Understand api when working with <Html5Video>.
  2. Understand props when working with <Html5Video>.
  3. Understand src when working with <Html5Video>.
  4. Understand trimbefore?<availablefrom v="4.0.319"/> when working with <Html5Video>.
  5. 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.