feat(site): API reference pages for media elements (#1342)

This commit is contained in:
Darius Cepulis
2026-06-19 09:44:54 -07:00
committed by GitHub
parent 1512729365
commit d799be1063
95 changed files with 3219 additions and 210 deletions
@@ -63,6 +63,12 @@ export function SimpleHlsAudioOnlyMediaMixin<Base extends Constructor<any>>(Base
this.#engine = this.#createEngine();
}
/**
* Underlying playback engine — the low-level SPF reactive composition that
* drives playback. An advanced escape hatch for direct engine access;
* normal playback is driven through this element's own properties and
* methods.
*/
get engine(): Composition<SimpleHlsAudioOnlyEngineState, SimpleHlsAudioOnlyEngineContext> {
return this.#engine;
}
@@ -91,6 +97,7 @@ export function SimpleHlsAudioOnlyMediaMixin<Base extends Constructor<any>>(Base
// preload — synchronous IDL attribute (WHATWG §4.8.11.2)
// -------------------------------------------------------------------------
/** Preload type (`'none'` / `'metadata'` / `'auto'`). */
get preload(): '' | 'none' | 'metadata' | 'auto' {
return this.#preload;
}
@@ -62,6 +62,12 @@ export function SimpleHlsMediaMixin<Base extends Constructor<any>>(BaseClass: Ba
this.#engine = this.#createEngine();
}
/**
* Underlying playback engine — the low-level SPF reactive composition that
* drives playback. An advanced escape hatch for direct engine access;
* normal playback is driven through this element's own properties and
* methods.
*/
get engine(): Composition<SimpleHlsEngineState, SimpleHlsEngineContext> {
return this.#engine;
}
@@ -90,6 +96,7 @@ export function SimpleHlsMediaMixin<Base extends Constructor<any>>(BaseClass: Ba
// preload — synchronous IDL attribute (WHATWG §4.8.11.2)
// -------------------------------------------------------------------------
/** Preload type (`'none'` / `'metadata'` / `'auto'`). */
get preload(): '' | 'none' | 'metadata' | 'auto' {
return this.#preload;
}