/** * @fileoverview Concrete loader for videos. */ import TinyContentLoader from './TinyContentLoader.mjs'; export type VideoLoaderOptions = { /** * - The video source URL. */ src?: string; /** * - Maximum time in milliseconds before the load is aborted. */ timeout?: number; /** * - The CORS mode applied to the video. */ crossOrigin?: string | null; /** * - Whether the video should autoplay. */ autoplay?: boolean; /** * - Whether the video should loop. */ loop?: boolean; /** * - Whether the video should be muted. */ muted?: boolean; /** * - Whether the video should display controls (default true). */ controls?: boolean; /** * - The preload strategy. */ preload?: 'none' | 'metadata' | 'auto'; /** * - An existing DOM element to adopt. */ element?: HTMLVideoElement | null; /** * - Whether to render progressively during fetch (default true). */ progressive?: boolean; /** * - Whether an external `src` change triggers a reload. */ autoReload?: boolean; /** * - Whether to download the video through fetch for byte progress. */ stream?: boolean; /** * - An optional shared memory cache. */ cache?: import('../../utils/TinyMediaCache.mjs').default | null; }; /** * @typedef {Object} VideoLoaderOptions * @property {string} [src] - The video source URL. * @property {number} [timeout] - Maximum time in milliseconds before the load is aborted. * @property {string|null} [crossOrigin] - The CORS mode applied to the video. * @property {boolean} [autoplay] - Whether the video should autoplay. * @property {boolean} [loop] - Whether the video should loop. * @property {boolean} [muted] - Whether the video should be muted. * @property {boolean} [controls] - Whether the video should display controls (default true). * @property {'none'|'metadata'|'auto'} [preload] - The preload strategy. * @property {HTMLVideoElement|null} [element] - An existing DOM element to adopt. * @property {boolean} [progressive] - Whether to render progressively during fetch (default true). * @property {boolean} [autoReload] - Whether an external `src` change triggers a reload. * @property {boolean} [stream] - Whether to download the video through fetch for byte progress. * @property {import('../../utils/TinyMediaCache.mjs').default|null} [cache] - An optional shared memory cache. */ /** * Loads a single video with full lifecycle control. * @extends {TinyContentLoader} * @beta */ declare class TinyVideoLoader extends TinyContentLoader { /** * Retrieves the uppercase tag name of the element this loader creates. * @returns {string} The uppercase tag name of the underlying media element. */ static get tagName(): string; /** * Creates a new video loader and validates the provided options. * @param {VideoLoaderOptions} [options] - The loader configuration. * @throws {TypeError} If `crossOrigin` is not a string or null. * @throws {TypeError} If `preload` is not a string. */ constructor(options?: VideoLoaderOptions); /** * The underlying `