ReferenceMedia
hls-background-video
HLS background video without controls, audio, captions, or adaptive quality
<hls-background-video> plays an HLS source through the SPF background engine. It is fixed to muted, autoplaying, inline, looped playback and omits controls, audio, text, DRM, and adaptive rendition switching.
See Add a background video for layout, poster, accessibility, and source-choice guidance.
Import
Or load it from the CDN:
Source behavior
src takes a complete HLS manifest URL. The engine starts loading when it receives the URL and pins the largest rendition that fits the screen. The ladder may be video-only, but its video renditions must use fMP4/CMAF. This engine does not include MPEG-TS transmuxing or DRM playback.
There is no source object, preload mode, or opt-out for muted, autoplay, and loop. Assigning a new src restarts playback from scratch.
API
The element also fires an error event when error becomes fatal. The inner video’s own error can remain null because SPF, rather than the browser, rejected the source.
Styling
Set an explicit size on the custom element or an author-owned wrapper.