import { getTemplateHTML } from "../background-video/template.js"; import { Media } from "@videojs/media/dom"; import { CustomElement } from "@videojs/utils/dom"; import { HlsVideoMediaError } from "@videojs/spf/hls-background-video"; import { Constructor } from "@videojs/utils/types"; //#region src/media/hls-background-video/adapter.d.ts declare const HlsBackgroundVideoBase: Constructor; /** * A muted, looping, chrome-less video over the SPF background-video engine. * * The SPF-backed counterpart to ``, which plays its source natively. This one streams HLS through the * engine, which pins a single rendition for the session rather than adapting, and drops audio and text handling * entirely — the shape an ambient hero video actually wants. * * Nearer an image than a player, and `src` is the whole surface. Replaces the standalone `mux-background-video` * package, whose `audio`, `debug`, `preload`, and `max-resolution` attributes are all deliberately absent. Capping * which rendition is fetched is a delivery param on the URL — `?max_resolution=720p` on a Mux stream, for one — which * keeps the renditions it excludes out of the manifest rather than merely unpicked; `preload` would have nothing to * say, since the engine loads from the moment it has a source. And unlike `` there are no `nomuted` / * `noloop` / `noautoplay` opt-outs: those three are what this element is for, so the adapter fixes them on at attach. * * Takes no structured `source` — `src` is an HLS URL, as the package it replaces required. Mux playback-ID identity, * poster, and storyboard belong to ``; none of them mean anything without controls to hang them on. * * Nothing about an unplayable source reaches the inner `