Video
A video player for a video file URL (with optional captions), or a YouTube link in privacy-enhanced mode: the poster shows first, and the player loads when the user presses play. A page on another video site shows as a link to it. Set title to name the video.
Examples
Loading examples…
Props
| Prop | Type | Description |
|---|---|---|
url | string | The URL of a video file, or of a YouTube video or short. A page on another video site shows as a link |
posterUrl | string | The image shown before the video plays |
title | string | Names the video for screen readers |
captions | object[] | Caption tracks of a video file |
aspectRatio | string | Default "16 / 9" |
width | number | string | Default "100%" |
maxWidth | number | string | Default "100%" |
weight | number | flex-grow in a Row or Column |