ReferenceMedia
background-video
Decorative background video element with automatic muting and looping
Decorative background video for a source the browser can play natively. By default itβs muted, looped, and autoplaying.
<background-video> renders a <video> inside shadow DOM and fills the box you give the component. Use the opt-out attributes in the API reference to change its playback defaults.
An HLS URL only works where the browser has native HLS playback. See Add a background video to choose a cross-browser HLS or Mux path and set up layout, poster, and decorative semantics.
Import
Or load it from the CDN: