feat(core): add media tracks and renditions support (#1664)

This commit is contained in:
Wesley Luyten
2026-06-15 07:39:55 +10:00
committed by GitHub
parent 0ffe1a9197
commit 67b39fe4bd
25 changed files with 1792 additions and 7 deletions
@@ -45,11 +45,15 @@ export function createMediaAttachMixin(context: MediaContext): MediaAttachMixin
}
override disconnectedCallback() {
super.disconnectedCallback?.();
// Detach the store while the media chain is still live so features
// (e.g. remote-playback) can clean up against the real underlying
// element. Destroying the media host first would null the layer
// chain's target before listeners get a chance to unwind.
this.#setMedia?.(null);
this.#unsubscribe?.();
this.#unsubscribe = null;
this.#setMedia = null;
super.disconnectedCallback?.();
}
}