fix(site): surface native media properties on element reference pages (#1722)

This commit is contained in:
Darius Cepulis
2026-07-15 09:31:13 -07:00
committed by GitHub
parent a9a09a7e52
commit 0dd84b819e
19 changed files with 1169 additions and 444 deletions
@@ -125,6 +125,11 @@ export class HTMLMediaElementHost<Target extends HTMLMediaTargetLike, Events ext
this.dispatchEvent(new (event.constructor as typeof Event)(event.type, event));
};
/**
* Current stream type (`'on-demand'`, `'live'`, or `'unknown'`). Defaults to
* `'unknown'`; detecting hosts update it automatically, and consumers can set
* it to override detection.
*/
get streamType() {
return getProp(this, 'streamType') ?? this.#streamType;
}