Video
A video embeds a YouTube or Vimeo video, or plays a video file, in a 16:9 frame with an optional caption below it.
Example
mdx
<Video src="https://octri.dev/landing/monitoring-demo.mp4" title="Octri monitoring" caption="Octri monitoring, following a request from the SDK to the error it caused."></Video>Props
srcstringrequiredWhat to play. url works as another name for it.
| You give | It plays |
|---|---|
A YouTube link, youtube.com/ or youtu.be/ | The YouTube player |
A Vimeo link, vimeo.com/ | The Vimeo player |
A file ending .mp4, .webm or .ogg | The browser's own player, with controls |
| Any other URL | That page, in an embedded frame |
With no src, nothing is drawn.
titlestringNames the video for screen readers.
captionstringA line of text under the video. Text between the tags is used as the caption too.
Hosting your own file
A file plays from wherever its URL points, so host it somewhere that serves video quickly, such as your CDN. Keep it short: a reader came to read, and a long video is better linked than embedded.