mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
feat(site): API reference pages for media elements (#1342)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user