mirror of
https://github.com/zoriya/v10.git
synced 2026-08-11 16:40:27 +00:00
fix: destroy hls.js instance on media unmount (#749)
This commit is contained in:
@@ -25,4 +25,12 @@ export class HlsVideo extends HlsCustomMedia {
|
||||
this.src = newValue ?? '';
|
||||
}
|
||||
}
|
||||
|
||||
disconnectedCallback(): void {
|
||||
super.disconnectedCallback();
|
||||
|
||||
if (!this.hasAttribute('keep-alive')) {
|
||||
this.destroy();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user