feat: destroyed ui on destroy() but has problems

This commit is contained in:
2026-04-25 00:00:45 +03:30
parent ab5047ce0a
commit 00f76cb1dc

View File

@@ -47,6 +47,11 @@ https://git.db123.ir/db/VideoPlayer
`);
}
destroy(): void {
this.ui?.destroy();
this.adapter.destroy();
}
private videoElement(video: string | HTMLVideoElement): HTMLVideoElement {
let videoEl;
if (video instanceof HTMLVideoElement) {
@@ -92,10 +97,6 @@ https://git.db123.ir/db/VideoPlayer
this.adapter.pause();
}
destroy(): void {
this.adapter.destroy();
}
get time(): number {
return this.adapter.time;
}