mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
feat(core): add media tracks and renditions support (#1664)
This commit is contained in:
@@ -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?.();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user