import { BackgroundVideoBase, BackgroundVideoOptOut } from "../background-video/base.js"; import { Media } from "@videojs/media/dom"; import { HlsBackgroundVideoAdapter, HlsVideoMediaError } from "@videojs/spf/adapters/hls-background-video"; //#region src/media/hls-background-video/adapter.d.ts /** * 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. Muted is fixed on: the engine drops audio, so there is * nothing to unmute. `noloop` and `noautoplay` opt out as on ``, so a page can play the video once, * or hold it until it has checked the motion preference. * * 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 `